lz4 hash table does not start zeroed

illumos issue: https://www.illumos.org/issues/12757

Submitted by:	andyf
This commit is contained in:
Toomas Soome
2020-05-19 19:53:12 +00:00
parent bf9a289cf2
commit 22ed31c23f
@@ -850,7 +850,7 @@ real_LZ4_compress(const char *source, char *dest, int isize, int osize)
#if defined(_KERNEL) || defined(_FAKE_KERNEL)
void *ctx = kmem_cache_alloc(lz4_ctx_cache, KM_NOSLEEP);
#else
void *ctx = malloc(sizeof(struct refTables));
void *ctx = calloc(1, sizeof(struct refTables));
#endif
int result;