git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c903fcb
)
netfilter: snmp nat leaks memory in case of failure
author
Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi>
Wed, 22 Oct 2008 17:41:29 +0000
(19:41 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sat, 25 Oct 2008 21:32:41 +0000
(14:32 -0700)
netfilter: snmp nat leaks memory in case of failure
Upstream commit
311670f3e
:
Signed-off-by: Ilpo Jarvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/nf_nat_snmp_basic.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/nf_nat_snmp_basic.c
b/net/ipv4/netfilter/nf_nat_snmp_basic.c
index
ffeaffc
..
8303e4b
100644
(file)
--- a/
net/ipv4/netfilter/nf_nat_snmp_basic.c
+++ b/
net/ipv4/netfilter/nf_nat_snmp_basic.c
@@
-742,6
+742,7
@@
static unsigned char snmp_object_decode(struct asn1_ctx *ctx,
*obj = kmalloc(sizeof(struct snmp_object) + len,
GFP_ATOMIC);
if (*obj == NULL) {
+ kfree(p);
kfree(id);
if (net_ratelimit())
printk("OOM in bsalg (%d)\n", __LINE__);