diff options
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index a31dd531e191..4d54951cea08 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -229,7 +229,8 @@ static void xfrm6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, | |||
229 | 229 | ||
230 | xdst = (struct xfrm_dst *)dst; | 230 | xdst = (struct xfrm_dst *)dst; |
231 | if (xdst->u.rt6.rt6i_idev->dev == dev) { | 231 | if (xdst->u.rt6.rt6i_idev->dev == dev) { |
232 | struct inet6_dev *loopback_idev = in6_dev_get(init_net.loopback_dev); | 232 | struct inet6_dev *loopback_idev = |
233 | in6_dev_get(dev->nd_net->loopback_dev); | ||
233 | BUG_ON(!loopback_idev); | 234 | BUG_ON(!loopback_idev); |
234 | 235 | ||
235 | do { | 236 | do { |