drivers/net/eql.c: Fix a dev leakage.
authorYang Hongyang <yanghy@cn.fujitsu.com>
Wed, 8 Apr 2009 22:56:33 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Apr 2009 22:56:33 +0000 (15:56 -0700)
After dev_get_by_name(), we should follow a dev_put().

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/eql.c

index 51ead7941f83ad249f6757eda2b50f6b6521d758..5210bb1027cce43d168d5f09d391064af2fac812 100644 (file)
@@ -542,6 +542,8 @@ static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
        }
        spin_unlock_bh(&eql->queue.lock);
 
+       dev_put(slave_dev);
+
        return ret;
 }