Skip to content

Commit 548ed72

Browse files
congwangdavem330
authored andcommitted
act_mirred: fix a typo in get_dev
Fixes: 255cb30 ("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: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent db7e9f7 commit 548ed72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/act_mirred.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static int tcf_mirred_device(const struct tc_action *a, struct net *net,
321321
int ifindex = tcf_mirred_ifindex(a);
322322

323323
*mirred_dev = __dev_get_by_index(net, ifindex);
324-
if (!mirred_dev)
324+
if (!*mirred_dev)
325325
return -EINVAL;
326326
return 0;
327327
}

0 commit comments

Comments
 (0)