]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix the err path for dev hwaddr sync in bond_enslave
authorXin Long <lucien.xin@gmail.com>
Sun, 25 Mar 2018 17:16:45 +0000 (01:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:51:05 +0000 (12:51 -0400)
commitb89d51fca3a97212a27480d1d9aae6693f20f97b
treeb972aa491f515ae85494a0b47e678141c6e84e09
parent3df08955ed27c2418d7021ece0bafd4ddc5e303b
bonding: fix the err path for dev hwaddr sync in bond_enslave

vlan_vids_add_by_dev is called right after dev hwaddr sync, so on
the err path it should unsync dev hwaddr. Otherwise, the slave
dev's hwaddr will never be unsync when this err happens.

Fixes: ce601c52a7bb ("bonding: change the bond's vlan syncing functions with the standard ones")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c