[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49DC14B3.9020308@cn.fujitsu.com>
Date: Wed, 08 Apr 2009 11:06:27 +0800
From: Yang Hongyang <yanghy@...fujitsu.com>
To: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>
Subject: [PATCH]drivers/net/eql.c:fix a dev leakage
After dev_get_by_name(),we should follow a dev_put().build test only.
Signed-off-by: Yang Hongyang<yanghy@...fujitsu.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists