bonding: in bond_mc_swap() bond's mc addr list is walked without lock
authornikolay@redhat.com <nikolay@redhat.com>
Thu, 18 Apr 2013 07:33:38 +0000 (07:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 21:48:19 +0000 (17:48 -0400)
commitd632ce989c811863a1ce9b1c53dae2cf06b35c49
treede50df492d43f49a83af0ec2fa029d8855d55dd6
parentfc7a72ac86e2956dd405b0c604fea45a2702f567
bonding: in bond_mc_swap() bond's mc addr list is walked without lock

Use netif_addr_lock_bh() to acquire the appropriate lock before walking.

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