Commit 93889d75 authored by Yang Hongyang's avatar Yang Hongyang Committed by David S. Miller

drivers/net/eql.c: Fix a dev leakage.

After dev_get_by_name(), we should follow a dev_put().
Signed-off-by: default avatarYang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efb6c736
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment