mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Add sanity check in init/deinit function
Add sanity check in init/deinit memory alloc function. Change-Id: Icb9862fabb64d9d82f302c1264c7cd74af1b1a0f CRs-Fixed: 2196072
This commit is contained in:
parent
e556063bc7
commit
8727ab68ff
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue