]> 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)
commitf43cc49d115854e47b17af76d365b89585f7d34e
treebfa79a6681e4c1b41c1d6646a7ba29a3a894f304
parent2f13b602c192c192c947e233b416c932b963c80c
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