qcacmn: Destroy WMI eventq_lock in WMI detach
eventq_lock is not destroyed in WMI detach.
Destroy WMI eventq_lock in WMI detach.
Change-Id: Ia60ec83cf776a3ceef75274b1bcb5dcca2594763
CRs-Fixed: 1021376
diff --git a/wmi_unified.c b/wmi_unified.c
index 96dbe5b..c3473e6 100644
--- a/wmi_unified.c
+++ b/wmi_unified.c
@@ -2201,6 +2201,7 @@
#endif
qdf_spin_unlock_bh(&wmi_handle->eventq_lock);
+ qdf_spinlock_destroy(&wmi_handle->eventq_lock);
qdf_spinlock_destroy(&wmi_handle->ctx_lock);
if (wmi_handle != NULL) {
OS_FREE(wmi_handle);