mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
[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: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d5bb306b42
commit
2396a22e09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user