Bonding Remove debug_fs files when module init fails
Subsystems (3)
PATCH 1/1 Bonding Remove debug_fs files when module init fails
Remove the bonding debug_fs entries when the
module initialization fails. The debug_fs
entries should be removed together with all other
already allocated resources.
Signed-off-by Thomas Richter <[email protected]>
--- drivers/net/bonding/bond_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/bonding/bond_main.c +1 -0
@@ -4492,6 +4492,7 @@ static int __init bonding_init(void) out:return res; err: +bond_destroy_debugfs ();bond_netlink_fini (); err_link:unregister_pernet_subsys (&bond_net_ops);
Signature · 1 line
1.9.0
Quoted 6 lines · Thomas Richter
Remove the bonding
debug_fsentries when the module initialization fails. Thedebug_fsentries should be removed together with all other already allocated resources.Signed-off-by Thomas Richter <[email protected]>
Signed-off-by Jay Vosburgh <[email protected]>
Quoted 17 lines
---
drivers/net/bonding/bond_main.c| 1 +1 file changed, 1 insertion(+)drivers/net/bonding/bond_main.c +0
-0@@ -4492,6 +4492,7 @@ static int __init bonding_init(void)out:
return res;err:
drivers/net/bonding/bond_main.c +1
-0+bond_destroy_debugfs ();bond_netlink_fini(); err_link: unregister_pernet_subsys(&bond_net_ops);
From: Thomas Richter <[email protected]>
Date: Wed, 9 Apr 2014 12:52:59 +0200
Quoted 6 lines
Remove the bonding
debug_fsentries when the
module initialization fails. Thedebug_fs
entries should be removed together with all other
already allocated resources.Signed-off-by Thomas Richter <[email protected]>
Applied, thanks.