ath11k: unlock mutex during failure in qmi fw ready
authorGovindaraj Saminathan <gsamin@codeaurora.org>
Wed, 27 Nov 2019 14:08:58 +0000 (14:08 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:48:09 +0000 (09:48 +0200)
qmi firmware ready event start to initialize the core modules and
the sequence executed with mutex lock. In case of any failure
mutex should be unlocked otherwise it will hang during the recovery.

Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/core.c

index b0c71b5879b1a55afaeafdb02591acc1fcc1273f..37d4ecb458db59ddea55803a68f9ec609218bc18 100644 (file)
@@ -539,6 +539,7 @@ err_core_stop:
        ath11k_core_stop(ab);
 err_dp_free:
        ath11k_dp_free(ab);
+       mutex_unlock(&ab->core_lock);
        return ret;
 }