From: Denis V. Lunev Date: Thu, 27 Mar 2008 23:53:37 +0000 (-0700) Subject: [PKT_SCHED]: Pass real namespace in net scheduler classifiers. X-Git-Tag: MMI-PSA29.97-13-9~35608^2~300 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09382bac667821017144de6b733a26f29a1c185b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PKT_SCHED]: Pass real namespace in net scheduler classifiers. Signed-off-by: Denis V. Lunev Signed-off-by: David S. Miller --- 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) if (indev[0]) { if (!skb->iif) return 0; - dev = __dev_get_by_index(&init_net, skb->iif); + dev = __dev_get_by_index(dev_net(skb->dev), skb->iif); if (!dev || strcmp(indev, dev->name)) return 0; }