diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-12-03 10:36:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-03 19:28:02 -0500 |
commit | 548ed722465b763841252bf74b7eda52cfc9131c (patch) | |
tree | 0be23cbb95161ff37f95939f9e93c23f5c812761 /net/sched/act_mirred.c | |
parent | db7e9f7c56d699e8ae039f8a812015f72d1d30a1 (diff) | |
download | linux-548ed722465b763841252bf74b7eda52cfc9131c.tar.gz linux-548ed722465b763841252bf74b7eda52cfc9131c.tar.bz2 linux-548ed722465b763841252bf74b7eda52cfc9131c.zip |
act_mirred: fix a typo in get_dev
Fixes: 255cb30425c0 ("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>
Diffstat (limited to 'net/sched/act_mirred.c')
-rw-r--r-- | net/sched/act_mirred.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index bb09ba3ca5c2..2d9fa6e0a1b4 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -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; } |