mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "qcacld-3.0: Check WMA for NULL before dereferencing" into wlan-cld3.driver.lnx.1.1-dev
This commit is contained in:
commit
146ccaa795
1 changed files with 5 additions and 0 deletions
|
|
@ -7982,6 +7982,11 @@ int wma_p2p_lo_event_handler(void *handle, uint8_t *event_buf,
|
|||
wmi_p2p_lo_stopped_event_fixed_param *fix_param;
|
||||
tpAniSirGlobal p_mac = cds_get_context(QDF_MODULE_ID_PE);
|
||||
|
||||
if (!wma) {
|
||||
WMA_LOGE("%s: Invalid WMA Context", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!p_mac) {
|
||||
WMA_LOGE("%s: Invalid p_mac", __func__);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue