Subject: [PATCH]drivers/net/eql.c:fix a dev leakage

From: Yang Hongyang <[email-masked]>
Date: Wed, 08 Apr 2009 11:06:27 +0800

After dev_get_by_name(),we should follow a dev_put().build test only.

Signed-off-by: Yang Hongyang<[email-masked]>

---
 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 51ead79..5210bb1 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;
 }
 
-- 
1.6.0.3

-- 
Regards
Yang Hongyang