Skip to content

Commit

Permalink
act_mirred: fix a typo in get_dev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
WANG Cong authored and David S. Miller committed Dec 4, 2016
1 parent db7e9f7 commit 548ed72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/act_mirred.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 548ed72

Please sign in to comment.