mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
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>
This commit is contained in:
parent
efb6c736da
commit
93889d7574
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user