bonding: Remove debug_fs files when module init fails
authorThomas Richter <tmricht@linux.vnet.ibm.com>
Wed, 9 Apr 2014 10:52:59 +0000 (12:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 23:01:59 +0000 (16:01 -0700)
commitcedc89a20df8cb06e3fee2f3f7b9d90430142e22
tree3ecdf19b6ee6d5249054064a31cc9ce0a8775f4e
parent20874f008f43d98548af632bbbfb54336183a98a
bonding: Remove debug_fs files when module init fails

[ Upstream commit db29868653394937037d71dc3545768302dda643 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/bonding/bond_main.c