projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7378396
)
netfilter: xt_limit: fix invalid return code in limit_mt_check()
author
Patrick McHardy
<kaber@trash.net>
Mon, 23 Nov 2009 12:37:23 +0000
(13:37 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Mon, 23 Nov 2009 12:37:23 +0000
(13:37 +0100)
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>
net/netfilter/xt_limit.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_limit.c
b/net/netfilter/xt_limit.c
index 2e8089ecd0af31b4ac17cf310a65ee5db97b6e0e..2773be6a71ddf49a2d8297a3183274472a0a7d61 100644
(file)
--- 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;