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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 13 May 2013 14:02:36 +0000 (15:02 +0100)
commit70c560e9ec8ab16abcb2a7dc5d2e4ff21dec2f95
treebcdb1137dcc00267f2965c85115c637b983bdde6
parent12f7b44dbf5cfc5bfd4db7ce03998dbc5adf7d38
bonding: IFF_BONDING is not stripped on enslave  failure

[ Upstream commit b6a5a7b9a528a8b4c8bec940b607c5dd9102b8cc ]

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/bonding/bond_main.c