projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b37d428
)
[IPV6] SYSCTL: Fix possible memory leakage in error path.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Wed, 27 Feb 2008 20:06:38 +0000
(12:06 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 Feb 2008 20:06:38 +0000
(12:06 -0800)
In error path, we do need to free memory just allocated.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sysctl_net_ipv6.c
patch
|
blob
|
history
diff --git
a/net/ipv6/sysctl_net_ipv6.c
b/net/ipv6/sysctl_net_ipv6.c
index 408691b777c226c2d0468137d5839cd658f8523d..d6d3e68086f8d85052ad47d31319561c50fc6fb6 100644
(file)
--- a/
net/ipv6/sysctl_net_ipv6.c
+++ b/
net/ipv6/sysctl_net_ipv6.c
@@
-101,9
+101,6
@@
static int ipv6_sysctl_net_init(struct net *net)
net->ipv6.sysctl.table = register_net_sysctl_table(net, net_ipv6_ctl_path,
ipv6_table);
- if (!net->ipv6.sysctl.table)
- return -ENOMEM;
-
if (!net->ipv6.sysctl.table)
goto out_ipv6_icmp_table;