diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/pkt_cls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index d349c66ef828..aa9e282db485 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h | |||
@@ -353,7 +353,7 @@ tcf_match_indev(struct sk_buff *skb, char *indev) | |||
353 | if (indev[0]) { | 353 | if (indev[0]) { |
354 | if (!skb->iif) | 354 | if (!skb->iif) |
355 | return 0; | 355 | return 0; |
356 | dev = __dev_get_by_index(&init_net, skb->iif); | 356 | dev = __dev_get_by_index(dev_net(skb->dev), skb->iif); |
357 | if (!dev || strcmp(indev, dev->name)) | 357 | if (!dev || strcmp(indev, dev->name)) |
358 | return 0; | 358 | return 0; |
359 | } | 359 | } |