Browse Source

qcacmn: balance spin_lock_create (lro)

Adding lock stats print upon spinlock & mutex destroy.
The spinlock destroy of the lro unloading lock in the
napi context did not match the create in location.
When a station adapter goes down and is brought back up,
the mismatch appears.

Change-Id: I137e6ffce3fb23f32a085b9fa36b065449a6d8a1
CRs-Fixed: 1111956
Houston Hoffman 8 years ago
parent
commit
d2e9dcd716
1 changed files with 1 additions and 2 deletions
  1. 1 2
      hif/src/hif_napi.c

+ 1 - 2
hif/src/hif_napi.c

@@ -249,6 +249,7 @@ int hif_napi_destroy(struct hif_opaque_softc *hif_ctx,
 				   napii->netdev.napi_list.prev,
 				   napii->netdev.napi_list.next);
 
+			qdf_spinlock_destroy(&napii->lro_unloading_lock);
 			netif_napi_del(&(napii->napi));
 
 			napid->ce_map &= ~(0x01 << ce);
@@ -356,8 +357,6 @@ void hif_napi_lro_flush_cb_deregister(struct hif_opaque_softc *hif_hdl,
 				napii->lro_ctx = NULL;
 				qdf_spin_unlock_bh(
 					&napii->lro_unloading_lock);
-				qdf_spinlock_destroy(
-					&napii->lro_unloading_lock);
 			}
 		}
 	} else {