aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ratelimiter.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ratelimiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c
index 836b4a6..6c7262a 100644
--- a/src/ratelimiter.c
+++ b/src/ratelimiter.c
@@ -173,12 +173,12 @@ int ratelimiter_init(void)
(1U << 14) / sizeof(struct hlist_head)));
max_entries = table_size * 8;
- table_v4 = kvzalloc(table_size * sizeof(struct hlist_head), GFP_KERNEL);
+ table_v4 = kvzalloc(table_size * sizeof(*table_v4), GFP_KERNEL);
if (!table_v4)
goto err_kmemcache;
#if IS_ENABLED(CONFIG_IPV6)
- table_v6 = kvzalloc(table_size * sizeof(struct hlist_head), GFP_KERNEL);
+ table_v6 = kvzalloc(table_size * sizeof(*table_v6), GFP_KERNEL);
if (!table_v6) {
kvfree(table_v4);
goto err_kmemcache;