summaryrefslogtreecommitdiff
path: root/drivers/ipack
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-13 09:29:24 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-12-18 21:52:26 (GMT)
commitbca44a7341924ec92ee7a1ba085c8f0745aeb74e (patch)
tree1435233da672d0cebd94b411023d61b012f57473 /drivers/ipack
parent71a06c59d19a57c8dd2972ebee88030f5b0c700e (diff)
downloadlinux-bca44a7341924ec92ee7a1ba085c8f0745aeb74e.tar.xz
bonding: protect port for bond_3ad_adapter_duplex_changed()
Jay Vosburgh said that the bond_3ad_adapter_duplex_changed is called with RTNL only, and the function will modify the port's information with no further locking, it will not mutex against bond state machine and incoming LACPDU which do not hold RTNL, So I add __get_state_machine_lock to protect the port. But it is not a critical bug, it exist since day one, and till now it has never been hit and reported, because changes to speed is very rare, and will not occur critical problem. The comments in the function is very old, cleanup it. Suggested-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions