diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-09 02:56:33 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-09 02:56:33 +0400 |
commit | 93889d7574ec90bb4455929ad0536d8df74bc730 (patch) | |
tree | e4a85dd02c679e0399fe694112d0d8aeb8cc76b3 /drivers | |
parent | efb6c736da8f9c455c22bcbf717dbcf1889d0325 (diff) | |
download | linux-93889d7574ec90bb4455929ad0536d8df74bc730.tar.xz |
drivers/net/eql.c: Fix a dev leakage.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/eql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/eql.c b/drivers/net/eql.c index 51ead7941f83..5210bb1027cc 100644 --- a/drivers/net/eql.c +++ b/drivers/net/eql.c @@ -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; } |