Skip to content

Commit

Permalink
[NET] net/core: Fix error handling
Browse files Browse the repository at this point in the history
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: Josef 'Jeff' Sipek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Josef 'Jeff' Sipek authored and davem330 committed May 7, 2007
1 parent d5bb306 commit 2396a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2396a22

Please sign in to comment.