summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2009-04-09 02:56:33 +0400
committerDavid S. Miller <davem@davemloft.net>2009-04-09 02:56:33 +0400
commit93889d7574ec90bb4455929ad0536d8df74bc730 (patch)
treee4a85dd02c679e0399fe694112d0d8aeb8cc76b3 /drivers
parentefb6c736da8f9c455c22bcbf717dbcf1889d0325 (diff)
downloadlinux-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.c2
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;
}