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 d6dfd7d1948f..76f172f13f90 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1949,7 +1949,7 @@ static int stale_bundle(struct dst_entry *dst)
1949void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) 1949void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev)
1950{ 1950{
1951 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) { 1951 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) {
1952 dst->dev = loopback_dev; 1952 dst->dev = init_net.loopback_dev;
1953 dev_hold(dst->dev); 1953 dev_hold(dst->dev);
1954 dev_put(dev); 1954 dev_put(dev);
1955 } 1955 }