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
This commit is contained in:
Govind Singh
2016-05-26 18:15:36 +05:30
committed by Vishwajith Upendra
parent ae91c40e3f
commit 20e7a06bfa

View File

@@ -2201,6 +2201,7 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle)
#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);