提交 2396a22e 编写于 作者: J Josef 'Jeff' Sipek 提交者: David S. Miller

[NET] net/core: Fix error handling

Upon failure to register "ptype" procfs entry, "softnet_stat" was not
removed, and an incorrect attempt was made to remove the "ptype" entry.
Signed-off-by: NJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d5bb306b
......@@ -2377,9 +2377,9 @@ static int __init dev_proc_init(void)
out:
return rc;
out_softnet:
proc_net_remove("softnet_stat");
out_dev2:
proc_net_remove("ptype");
out_dev2:
proc_net_remove("softnet_stat");
out_dev:
proc_net_remove("dev");
goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册