Skip to contentSkip to conversation

ath11k: unlock mutex during failure in qmi fw ready

PATCH In review Govindaraj Saminathan 2 participants 2 messages Oct 31, 2019 – Nov 11, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: unlock mutex during failure in qmi fw ready

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.

---
 drivers/net/wireless/ath/ath11k/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath11k/core.c +1 -0
index 9324dcb..d2dd0ba 100644
@@ -531,6 +531,7 @@ int ath11k_core_qmi_firmware_ready(struct ath11k_base *ab)
 	ath11k_core_stop(ab);
 err_dp_free:
 	ath11k_dp_free(ab);
+	mutex_unlock(&ab->core_lock);
 	return ret;
 }
 
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · Govindaraj Saminathan

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.

Patch applied to ath11k-post-bringup branch of ath.git, thanks.

c1283e0e7f1a ath11k: unlock mutex during failure in qmi fw ready

Signature · 9 lines
https://patchwork.kernel.org/patch/11221153/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k