commit | 93889d7574ec90bb4455929ad0536d8df74bc730 | [log] [tgz] |
---|---|---|
author | Yang Hongyang <yanghy@cn.fujitsu.com> | Wed Apr 08 15:56:33 2009 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 08 15:56:33 2009 -0700 |
tree | e4a85dd02c679e0399fe694112d0d8aeb8cc76b3 | |
parent | efb6c736da8f9c455c22bcbf717dbcf1889d0325 [diff] [blame] |
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>
diff --git a/drivers/net/eql.c b/drivers/net/eql.c index 51ead79..5210bb1 100644 --- a/drivers/net/eql.c +++ b/drivers/net/eql.c
@@ -542,6 +542,8 @@ } spin_unlock_bh(&eql->queue.lock); + dev_put(slave_dev); + return ret; }