]> git.baikalelectronics.ru Git - kernel.git/commitdiff
wifi: wilc1000: set correct value of 'close' variable in failure case
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 20 Jul 2022 16:03:03 +0000 (16:03 +0000)
committerKalle Valo <kvalo@kernel.org>
Wed, 27 Jul 2022 12:58:10 +0000 (15:58 +0300)
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
drivers/net/wireless/microchip/wilc1000/netdev.c

index fcc4e61592ee1a4d8c01ceb39325635f4c49cec7..7879446f282fe630d4643d143684eec9c1b424b4 100644 (file)
@@ -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);