diff options
-rw-r--r-- | net/netfilter/xt_connlimit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_connlimit.c b/net/netfilter/xt_connlimit.c index 458464e7bd7a..a6e129eb3aa0 100644 --- a/net/netfilter/xt_connlimit.c +++ b/net/netfilter/xt_connlimit.c | |||
@@ -377,7 +377,7 @@ static int connlimit_mt_check(const struct xt_mtchk_param *par) | |||
377 | return -ENOMEM; | 377 | return -ENOMEM; |
378 | } | 378 | } |
379 | 379 | ||
380 | for (i = 0; i < ARRAY_SIZE(info->data->locks); ++i) | 380 | for (i = 0; i < CONNLIMIT_LOCK_SLOTS; ++i) |
381 | spin_lock_init(&info->data->locks[i]); | 381 | spin_lock_init(&info->data->locks[i]); |
382 | 382 | ||
383 | for (i = 0; i < ARRAY_SIZE(info->data->climit_root4); ++i) | 383 | for (i = 0; i < ARRAY_SIZE(info->data->climit_root4); ++i) |