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

Commit 548ed722 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

act_mirred: fix a typo in get_dev



Fixes: 255cb304 ("net/sched: act_mirred: Add new tc_action_ops get_dev()")
Cc: Hadar Hen Zion <hadarh@mellanox.com>
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db7e9f7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ static int tcf_mirred_device(const struct tc_action *a, struct net *net,
	int ifindex = tcf_mirred_ifindex(a);

	*mirred_dev = __dev_get_by_index(net, ifindex);
	if (!mirred_dev)
	if (!*mirred_dev)
		return -EINVAL;
	return 0;
}