]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix error return code in bond_enslave()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 23 Aug 2013 02:45:07 +0000 (10:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Aug 2013 22:37:35 +0000 (18:37 -0400)
commit3c772fac867cb47f34d2d9b6109b96334cc051a0
tree97d05f5eb5b1ade53f561240a5860b52c929ea57
parent302c2f0d025ebd940d9401f0e30437bacc8099b2
bonding: fix error return code in bond_enslave()

Fix to return a negative error code in the add bond vlan ids error
handling case instead of 0, as done elsewhere in this function.

Introduced by commit d79e5dbe56682d1a78c341a096bf004ec3cfeded.
(bonding: change the bond's vlan syncing functions with the standard ones)

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