]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bonding: fix store_arp_validate race with mode change
authornikolay@redhat.com <nikolay@redhat.com>
Fri, 6 Sep 2013 22:00:25 +0000 (00:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Sep 2013 19:55:17 +0000 (15:55 -0400)
commit5c5038dc26bdc609022a897e15f9ccdd28402ad9
treeacbde7eac54c53a2303c8d7dfab6fdc34f45e8ef
parent8112b1fe071be01a28a774ed55909e6f4b29712d
bonding: fix store_arp_validate race with mode change

We need to protect store_arp_validate via rtnl because it can race with
mode changing and we can end up having arp_validate set in a mode
different from active-backup.

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