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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 50682d3cd7a9..d6dfd7d1948f 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1949,8 +1949,8 @@ 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 = loopback_dev;
1953 dev_hold(&loopback_dev); 1953 dev_hold(dst->dev);
1954 dev_put(dev); 1954 dev_put(dev);
1955 } 1955 }
1956} 1956}