diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index d2ae9893ca17392d2eea5472ee4b423156b4de1b..a26ff9f44576fffb0c20dd7725a463c291db989e 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c @@ -620,7 +620,7 @@ int dn_dev_set_default(struct net_device *dev, int force) } write_unlock(&dndev_lock); if (old) - dev_put(dev); + dev_put(old); return rv; }