]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Dec 2022 03:19:32 +0000 (19:19 -0800)
commit3d0b738fc5adf9f380702ac1424672e4b32c3781
tree97f6527894bf96a495565ae323ed25d780dc538a
parentf3b4a00f0f62da252c598310698dfc82ef2f2e2e
bonding: add missed __rcu annotation for curr_active_slave

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>
drivers/net/bonding/bond_main.c