bonding: add missed __rcu annotation for curr_active_slave
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 12 Dec 2022 03:56:45 +0000 (11:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:53 +0000 (13:32 +0100)
commit2d31c6ed44287863ecb93173b0b98aeec1ed0d1c
tree2b98650cff3b1f63d2fbb421d5e860606bc03061
parentba44c1fe82340cd1a52fdda0aa64408aae5c6c20
bonding: add missed __rcu annotation for curr_active_slave

[ Upstream commit 3d0b738fc5adf9f380702ac1424672e4b32c3781 ]

There is one direct accesses to bond->curr_active_slave in
bond_miimon_commit(). Protected it by rcu_access_pointer()
since the later of this function also use this one.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: e95cc44763a4 ("bonding: do failover when high prio link up")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/bonding/bond_main.c