提交 3bdfe7ec 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

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

In error path, we do need to free memory just allocated.
Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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,
ipv6_table);
if (!net->ipv6.sysctl.table)
return -ENOMEM;
if (!net->ipv6.sysctl.table)
goto out_ipv6_icmp_table;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册