diff options
-rw-r--r-- | net/core/dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 5c6cfc4e7fdb..7eceebaabaaa 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -284,8 +284,8 @@ static inline void dst_ifdown(struct dst_entry *dst, struct net_device *dev, | |||
284 | dev_put(dev); | 284 | dev_put(dev); |
285 | if (dst->neighbour && dst->neighbour->dev == dev) { | 285 | if (dst->neighbour && dst->neighbour->dev == dev) { |
286 | dst->neighbour->dev = dst->dev; | 286 | dst->neighbour->dev = dst->dev; |
287 | dev_hold(dst->dev); | ||
287 | dev_put(dev); | 288 | dev_put(dev); |
288 | dev_hold(dst->neighbour->dev); | ||
289 | } | 289 | } |
290 | } | 290 | } |
291 | } | 291 | } |