From: Yang Hongyang Date: Wed, 8 Apr 2009 22:56:33 +0000 (-0700) Subject: drivers/net/eql.c: Fix a dev leakage. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93889d7574ec90bb4455929ad0536d8df74bc730;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers/net/eql.c: Fix a dev leakage. After dev_get_by_name(), we should follow a dev_put(). Signed-off-by: Yang Hongyang Signed-off-by: David S. Miller --- 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; }