mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Add validation code in wma_set_pmo_caps()
Make sure wma is not null before dereferencing. Change-Id: Ie6b8d3c48257de12ae45ffe0a15079642c29cb30 CRs-Fixed: 2299789
This commit is contained in:
parent
433a8dbfad
commit
eec28b5d97
1 changed files with 5 additions and 0 deletions
|
|
@ -5605,6 +5605,11 @@ static void wma_set_pmo_caps(struct wlan_objmgr_psoc *psoc)
|
|||
struct pmo_device_caps caps;
|
||||
|
||||
wma = cds_get_context(QDF_MODULE_ID_WMA);
|
||||
if (!wma) {
|
||||
WMA_LOGE("%s: wma handler is null", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
caps.arp_ns_offload =
|
||||
wmi_service_enabled(wma->wmi_handle, wmi_service_arpns_offload);
|
||||
caps.apf =
|
||||
|
|
|
|||
Loading…
Reference in a new issue