Skip to contentSkip to conversation

net/core: Fix error handling

PATCH Applied Josef 'Jeff' Sipek 2 participants 2 messages May 6, 2007 – May 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/core/dev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/core/dev.c +2 -2
index d5e42d1..d8dc621 100644
@@ -2365,9 +2365,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;
Signature · 1 line
1.5.2.rc1.20.g86b9