mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
[IPV6] SYSCTL: Fix possible memory leakage in error path.
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>
This commit is contained in:
parent
b37d428b24
commit
3bdfe7ec08
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user