* netfilter: xt_limit: fix invalid return code in limit_mt_check()
@ 2009-11-23 12:43 Patrick McHardy
2009-11-23 17:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2009-11-23 12:43 UTC (permalink / raw)
To: David S. Miller; +Cc: Netfilter Development Mailinglist, Linux Netdev List
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
This patch fixes an invalid return value in the limit match.
Please apply or pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6.git master
Thanks!
[-- Attachment #2: 01.diff --]
[-- Type: text/x-patch, Size: 805 bytes --]
commit 8fa539bd911e8a7faa7cd77b5192229c9666d9b8
Author: Patrick McHardy <kaber@trash.net>
Date: Mon Nov 23 13:37:23 2009 +0100
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: Patrick McHardy <kaber@trash.net>
diff --git a/net/netfilter/xt_limit.c b/net/netfilter/xt_limit.c
index 2e8089e..2773be6 100644
--- a/net/netfilter/xt_limit.c
+++ b/net/netfilter/xt_limit.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: netfilter: xt_limit: fix invalid return code in limit_mt_check()
2009-11-23 12:43 netfilter: xt_limit: fix invalid return code in limit_mt_check() Patrick McHardy
@ 2009-11-23 17:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-11-23 17:53 UTC (permalink / raw)
To: kaber; +Cc: netfilter-devel, netdev
From: Patrick McHardy <kaber@trash.net>
Date: Mon, 23 Nov 2009 13:43:57 +0100
> This patch fixes an invalid return value in the limit match.
> Please apply or pull from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6.git master
Pulled, thanks Patrick.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-23 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 12:43 netfilter: xt_limit: fix invalid return code in limit_mt_check() Patrick McHardy
2009-11-23 17:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).