aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r--net/ipv4/xfrm4_policy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
index b4948c170b3e..10b72d185bb9 100644
--- a/net/ipv4/xfrm4_policy.c
+++ b/net/ipv4/xfrm4_policy.c
@@ -214,7 +214,8 @@ static void xfrm4_dst_ifdown(struct dst_entry *dst, struct net_device *dev,
214 214
215 xdst = (struct xfrm_dst *)dst; 215 xdst = (struct xfrm_dst *)dst;
216 if (xdst->u.rt.idev->dev == dev) { 216 if (xdst->u.rt.idev->dev == dev) {
217 struct in_device *loopback_idev = in_dev_get(init_net.loopback_dev); 217 struct in_device *loopback_idev =
218 in_dev_get(dev->nd_net->loopback_dev);
218 BUG_ON(!loopback_idev); 219 BUG_ON(!loopback_idev);
219 220
220 do { 221 do {