Эх сурвалжийг харах

qcacld-3.0: Initialize irq_lock and connection_status_lock

Uninitialize spinlock caused crash on mdm platform.

Change-Id: I0d86999d70e35c69775e698e69a8388de24d6fb3
CRs-Fixed: 951563
Houston Hoffman 9 жил өмнө
parent
commit
67056b2870

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -4749,6 +4749,7 @@ int hdd_wlan_startup(struct device *dev, void *hif_sc)
 	init_completion(&hdd_ctx->ready_to_suspend);
 
 	spin_lock_init(&hdd_ctx->schedScan_lock);
+	spin_lock_init(&hdd_ctx->connection_status_lock);
 
 	cdf_spinlock_init(&hdd_ctx->hdd_adapter_lock);
 	cdf_list_init(&hdd_ctx->hddAdapters, MAX_NUMBER_OF_ADAPTERS);

+ 2 - 0
core/hif/src/pcie/if_pci.c

@@ -882,6 +882,8 @@ CDF_STATUS hif_bus_open(struct ol_softc *ol_sc, enum ath_hal_bus_type bus_type)
 	sc->ol_sc = ol_sc;
 	ol_sc->bus_type = bus_type;
 
+	cdf_spinlock_init(&ol_sc->irq_lock);
+
 	return CDF_STATUS_SUCCESS;
 }