qcacld-3.0: Add NULL checks before use

Add NULL checks for variables before using them in functions.

Change-Id: I9b10daf6678451860d3fe0bea2d830cfb7c5fd95
CRs-Fixed: 2089858
This commit is contained in:
Sravan Kumar Kairam 2018-02-28 16:07:48 +05:30 • committed by nshrivas
commit 7b653b42be

View file

@ -322,6 +322,7 @@ static void hdd_init_qdf_ctx(struct device *dev, void *bdev,
qdf_dev->drv_hdl = bdev;
qdf_dev->bus_type = bus_type;
qdf_dev->bid = bid;
cds_smmu_mem_map_setup(qdf_dev);
}
/**
@ -390,7 +391,6 @@ static int wlan_hdd_probe(struct device *dev, void *bdev,
cds_set_load_in_progress(true);
hdd_init_qdf_ctx(dev, bdev, bus_type, (const struct hif_bus_id *)bid);
cds_smmu_mem_map_setup(cds_get_context(QDF_MODULE_ID_QDF_DEVICE));
if (reinit) {
ret = hdd_wlan_re_init();