]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: vlans don't get deleted on enslave failure
authornikolay@redhat.com <nikolay@redhat.com>
Thu, 18 Apr 2013 07:33:35 +0000 (07:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 21:48:18 +0000 (17:48 -0400)
commit08621447396d527b8e5de15b1384f2b10cf3da5a
treebfa79a6681e4c1b41c1d6646a7ba29a3a894f304
parent316851e58b856f7191217b2c14058e5e9a48bb2a
bonding: vlans don't get deleted on enslave failure

The main problem is with vid refcount which only gets bumped up.
Delete the vlans after err_detach as that's the first error path
after the vlans are added.

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