aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index a76280a14e72..95dc581861e8 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1934,7 +1934,7 @@ static int stale_bundle(struct dst_entry *dst)
1934void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) 1934void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev)
1935{ 1935{
1936 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) { 1936 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) {
1937 dst->dev = init_net.loopback_dev; 1937 dst->dev = dev->nd_net->loopback_dev;
1938 dev_hold(dst->dev); 1938 dev_hold(dst->dev);
1939 dev_put(dev); 1939 dev_put(dev);
1940 } 1940 }