bonding: remove already created master sysfs link on failure
authorVeaceslav Falico <vfalico@redhat.com>
Tue, 26 Mar 2013 16:43:28 +0000 (17:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 17:00:02 +0000 (13:00 -0400)
commit9fe16b78ee17579cb4f333534cf7043e94c67024
treeaaf72d4a6dc1b60b62e6422563da2b98103359cd
parent14134f6584212d585b310ce95428014b653dfaf6
bonding: remove already created master sysfs link on failure

If slave sysfs symlink failes to be created - we end up without removing
the master sysfs symlink. Remove it in case of failure.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c