Explorar o código

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
Govind Singh %!s(int64=8) %!d(string=hai) anos
pai
achega
89298eaabc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      wmi/src/wmi_unified.c

+ 1 - 0
wmi/src/wmi_unified.c

@@ -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);