Skip to content

Commit 0ce2855

Browse files
Denis V. Lunevdavem330
authored andcommitted
ipv6: missed namespace context in ipv6_rthdr_rcv
Signed-off-by: Denis V. Lunev <den@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fe785be commit 0ce2855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/exthdrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static int ipv6_rthdr_rcv(struct sk_buff *skb)
445445
kfree_skb(skb);
446446
return -1;
447447
}
448-
if (!ipv6_chk_home_addr(&init_net, addr)) {
448+
if (!ipv6_chk_home_addr(dev_net(skb->dst->dev), addr)) {
449449
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
450450
IPSTATS_MIB_INADDRERRORS);
451451
kfree_skb(skb);

0 commit comments

Comments
 (0)