mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
wifi: wilc1000: set correct value of 'close' variable in failure case
Set 'close' variable to '1' to indicate closing operation when initialisation fails during wlan_initialize_threads() call. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220720160302.231516-3-ajay.kathat@microchip.com
This commit is contained in:
parent
2f6e44ee6e
commit
f589b5d941
|
|
@ -472,7 +472,7 @@ static int wlan_initialize_threads(struct net_device *dev)
|
|||
"%s-tx", dev->name);
|
||||
if (IS_ERR(wilc->txq_thread)) {
|
||||
netdev_err(dev, "couldn't create TXQ thread\n");
|
||||
wilc->close = 0;
|
||||
wilc->close = 1;
|
||||
return PTR_ERR(wilc->txq_thread);
|
||||
}
|
||||
wait_for_completion(&wilc->txq_thread_started);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user