projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: xt_limit: fix invalid return code in limit_mt_check()
[profile/ivi/kernel-adaptation-intel-automotive.git]
/
net
/
netfilter
/
xt_limit.c
diff --git
a/net/netfilter/xt_limit.c
b/net/netfilter/xt_limit.c
index
2e8089e
..
2773be6
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;