Add sanity check in init/deinit memory alloc function. Change-Id: Icb9862fabb64d9d82f302c1264c7cd74af1b1a0f CRs-Fixed: 2196072
@@ -65,6 +65,9 @@ static uint32_t init_deinit_alloc_host_mem_chunk(struct wlan_objmgr_psoc *psoc,
return 0;
qdf_dev = wlan_psoc_get_qdf_dev(psoc);
+ if (!qdf_dev)
+ return 0;
+
/*
* We have skip smaller chunks memory allocation for TXBF_CV buffer
* as Firmware is expecting continuous memory