From: nikolay@redhat.com Date: Thu, 11 Apr 2013 09:18:56 +0000 (+0000) Subject: bonding: IFF_BONDING is not stripped on enslave failure X-Git-Tag: v3.9-rc8~20^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6a5a7b9a528a8b4c8bec940b607c5dd9102b8cc;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index e074c6b..a61a760 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1906,6 +1906,7 @@ err_detach: write_unlock_bh(&bond->lock); err_close: + slave_dev->priv_flags &= ~IFF_BONDING; dev_close(slave_dev); err_unset_master: