Commit 8fa539bd authored by Patrick McHardy's avatar Patrick McHardy

netfilter: xt_limit: fix invalid return code in limit_mt_check()

Commit acc738fe (netfilter: xtables: avoid pointer to self) introduced
an invalid return value in limit_mt_check().
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 7378396c
...@@ -112,7 +112,7 @@ static bool limit_mt_check(const struct xt_mtchk_param *par) ...@@ -112,7 +112,7 @@ static bool limit_mt_check(const struct xt_mtchk_param *par)
priv = kmalloc(sizeof(*priv), GFP_KERNEL); priv = kmalloc(sizeof(*priv), GFP_KERNEL);
if (priv == NULL) if (priv == NULL)
return -ENOMEM; return false;
/* For SMP, we only want to use one set of state. */ /* For SMP, we only want to use one set of state. */
r->master = priv; r->master = priv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment