net/core: Fix error handling
Subsystems (2)
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.
Signed-off-by Josef 'Jeff' Sipek <[email protected]>
--- net/core/dev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/core/dev.c +2 -2
@@ -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
From: "Josef 'Jeff' Sipek" <[email protected]>
Date: Sun, 6 May 2007 19:20:43 -0400
Quoted 4 lines
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]>
Applied, thanks Josef.