Skip to content

Commit

Permalink
netfilter: xt_limit: fix invalid return code in limit_mt_check()
Browse files Browse the repository at this point in the history
Commit acc738f (netfilter: xtables: avoid pointer to self) introduced
an invalid return value in limit_mt_check().

Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Patrick McHardy committed Nov 23, 2009
1 parent 7378396 commit 8fa539b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_limit.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static bool limit_mt_check(const struct xt_mtchk_param *par)

priv = kmalloc(sizeof(*priv), GFP_KERNEL);
if (priv == NULL)
return -ENOMEM;
return false;

/* For SMP, we only want to use one set of state. */
r->master = priv;
Expand Down

0 comments on commit 8fa539b

Please sign in to comment.