diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2022-07-20 16:03:03 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-07-27 15:58:10 +0300 |
commit | f589b5d941c712d982868fd548a000e07fc5cf59 (patch) | |
tree | f864a8be40c56bcce756af48754155acf6ec2d3c /drivers/net/wireless | |
parent | 2f6e44ee6e969ea22d330c2810d7c891e63e6a08 (diff) |
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
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/microchip/wilc1000/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index fcc4e61592ee..7879446f282f 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -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); |