diff options
author | Thomas Richter <tmricht@linux.vnet.ibm.com> | 2014-04-09 14:52:59 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-11 23:04:40 +0400 |
commit | db29868653394937037d71dc3545768302dda643 (patch) | |
tree | 6d9373786bca87651089ccb83eea32b2c165b313 | |
parent | 6d39d589bb76ee8a1c6cde6822006ae0053decff (diff) | |
download | linux-db29868653394937037d71dc3545768302dda643.tar.xz |
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 <tmricht@linux.vnet.ibm.com>
Signed-off-by: Jay Vosburgh <j.vosburgh@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bonding/bond_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index d9f85464b362..69aff72c8957 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -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); |