Allocate space for struct rcuhashbash_table, not a pointer to it
diff --git a/rcuhashbash-resize.c b/rcuhashbash-resize.c
index 716d06f..4e5d351 100644
--- a/rcuhashbash-resize.c
+++ b/rcuhashbash-resize.c
@@ -392,7 +392,7 @@
 	if (!entry_cache)
 		goto enomem;
 
-	table = kzalloc(sizeof(table) + (1UL << shift1) * sizeof(table->buckets[0]), GFP_KERNEL);
+	table = kzalloc(sizeof(*table) + (1UL << shift1) * sizeof(table->buckets[0]), GFP_KERNEL);
 	if (!table)
 		goto enomem;