Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2396a22e authored by Josef 'Jeff' Sipek's avatar Josef 'Jeff' Sipek Committed by David S. Miller
Browse files

[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: default avatarJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5bb306b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;