git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipvs: Add boundary check on ioctl arguments
[safe/jmp/linux-2.6]
/
net
/
netfilter
/
xt_quota.c
diff --git
a/net/netfilter/xt_quota.c
b/net/netfilter/xt_quota.c
index
01dd07b
..
390b7d0
100644
(file)
--- a/
net/netfilter/xt_quota.c
+++ b/
net/netfilter/xt_quota.c
@@
-52,8
+52,9
@@
static bool quota_mt_check(const struct xt_mtchk_param *par)
q->master = kmalloc(sizeof(*q->master), GFP_KERNEL);
if (q->master == NULL)
- return
-ENOMEM
;
+ return
false
;
+ q->master->quota = q->quota;
return true;
}