diff options
author | Thomas Richter <tmricht@linux.vnet.ibm.com> | 2014-04-09 12:52:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-11 15:04:40 -0400 |
commit | db29868653394937037d71dc3545768302dda643 (patch) | |
tree | 6d9373786bca87651089ccb83eea32b2c165b313 /drivers | |
parent | 6d39d589bb76ee8a1c6cde6822006ae0053decff (diff) | |
download | linux-db29868653394937037d71dc3545768302dda643.tar.gz linux-db29868653394937037d71dc3545768302dda643.tar.bz2 linux-db29868653394937037d71dc3545768302dda643.zip |
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>
Diffstat (limited to 'drivers')
-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); |