bonding: IFF_BONDING is not stripped on enslave failure
authornikolay@redhat.com <nikolay@redhat.com>
Thu, 11 Apr 2013 09:18:56 +0000 (09:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 20:01:47 +0000 (16:01 -0400)
commitb6a5a7b9a528a8b4c8bec940b607c5dd9102b8cc
treebc29c9f5490ab363d651a73319e8073d3a92b824
parent6101391d4a381cc0c661d8765235b3cad7da09e5
bonding: IFF_BONDING is not stripped on enslave failure

While enslaving a new device and after IFF_BONDING flag is set, in case
of failure it is not stripped from the device's priv_flags while
cleaning up, which could lead to other problems.
Cleaning at err_close because the flag is set after dev_open().

v2: no change

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