aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/dn_dev.c')
-rw-r--r--net/decnet/dn_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c
index fa24614b5a37..bcaf4c5aa68e 100644
--- a/net/decnet/dn_dev.c
+++ b/net/decnet/dn_dev.c
@@ -869,10 +869,10 @@ last_chance:
869 rv = dn_dev_get_first(dev, addr); 869 rv = dn_dev_get_first(dev, addr);
870 read_unlock(&dev_base_lock); 870 read_unlock(&dev_base_lock);
871 dev_put(dev); 871 dev_put(dev);
872 if (rv == 0 || dev == &loopback_dev) 872 if (rv == 0 || dev == loopback_dev)
873 return rv; 873 return rv;
874 } 874 }
875 dev = &loopback_dev; 875 dev = loopback_dev;
876 dev_hold(dev); 876 dev_hold(dev);
877 goto last_chance; 877 goto last_chance;
878} 878}