Commit 3bdfe7ec authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller
Browse files

[IPV6] SYSCTL: Fix possible memory leakage in error path.

In error path, we do need to free memory just allocated.
Signed-off-by: default avatarYOSHIFUJI Hideaki <>
Signed-off-by: default avatarDavid S. Miller <>
parent b37d428b
......@@ -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,
if (!net->ipv6.sysctl.table)
return -ENOMEM;
if (!net->ipv6.sysctl.table)
goto out_ipv6_icmp_table;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment