]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: unwind on bond_add_vlan failure
authornikolay@redhat.com <nikolay@redhat.com>
Tue, 6 Aug 2013 10:40:16 +0000 (12:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2013 05:31:21 +0000 (22:31 -0700)
commit96714f1bd8d796660a79e83fdd04c723c5a67f5c
tree447006c4670fbdad8c92e8b2976fd3dd00eca902
parentd79e5dbe56682d1a78c341a096bf004ec3cfeded
bonding: unwind on bond_add_vlan failure

In case of bond_add_vlan() failure currently we'll have the vlan's
refcnt bumped up in all slaves, but it will never go down because it
failed to get added to the bond, so properly unwind the added vlan if
bond_add_vlan fails.

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