diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-12-03 19:36:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-04 01:28:02 +0100 |
commit | 548ed722465b763841252bf74b7eda52cfc9131c (patch) | |
tree | 0be23cbb95161ff37f95939f9e93c23f5c812761 | |
parent | Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirshe... (diff) | |
download | linux-548ed722465b763841252bf74b7eda52cfc9131c.tar.xz 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>
-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; } |