提交 3d0b738f 编写于 作者: H Hangbin Liu 提交者: Jakub Kicinski

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: NHangbin Liu <liuhangbin@gmail.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 f3b4a00f
...@@ -2699,7 +2699,7 @@ static void bond_miimon_commit(struct bonding *bond) ...@@ -2699,7 +2699,7 @@ static void bond_miimon_commit(struct bonding *bond)
bond_miimon_link_change(bond, slave, BOND_LINK_UP); bond_miimon_link_change(bond, slave, BOND_LINK_UP);
if (!bond->curr_active_slave || slave == primary) if (!rcu_access_pointer(bond->curr_active_slave) || slave == primary)
goto do_failover; goto do_failover;
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册