Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 679b1607 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

team: ab: walk through port list non-rcu



Since team->lock is being held, _rcu variant make no sense.

Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 71472ec1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ static int ab_active_port_set(struct team *team, struct team_gsetter_ctx *ctx)
{
	struct team_port *port;

	list_for_each_entry_rcu(port, &team->port_list, list) {
	list_for_each_entry(port, &team->port_list, list) {
		if (port->dev->ifindex == ctx->data.u32_val) {
			rcu_assign_pointer(ab_priv(team)->active_port, port);
			return 0;