diff options
| author | Thomas Richter <tmricht@linux.vnet.ibm.com> | 2014-04-09 06:52:59 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-04-11 15:04:40 -0400 |
| commit | db29868653394937037d71dc3545768302dda643 (patch) | |
| tree | 6d9373786bca87651089ccb83eea32b2c165b313 | |
| parent | 6d39d589bb76ee8a1c6cde6822006ae0053decff (diff) | |
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) | |||
| 4492 | out: | 4492 | out: |
| 4493 | return res; | 4493 | return res; |
| 4494 | err: | 4494 | err: |
| 4495 | bond_destroy_debugfs(); | ||
| 4495 | bond_netlink_fini(); | 4496 | bond_netlink_fini(); |
| 4496 | err_link: | 4497 | err_link: |
| 4497 | unregister_pernet_subsys(&bond_net_ops); | 4498 | unregister_pernet_subsys(&bond_net_ops); |
