mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Check for valid mlme_psoc_obj
The mlme_psoc_obj must be checked for before access. Change-Id: I043126765a9c5bf4cb42d3f9f35e3a7d5a694611 CRs-Fixed: 2775388
This commit is contained in:
parent
697d229fd6
commit
e4e3cb700c
1 changed files with 5 additions and 0 deletions
|
|
@ -1177,6 +1177,11 @@ QDF_STATUS wma_vdev_start_resp_handler(struct vdev_mlme_obj *vdev_mlme,
|
|||
}
|
||||
|
||||
mlme_psoc_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_psoc_obj) {
|
||||
wma_err("Failed to get mlme_psoc");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
ratemask_cfg = &mlme_psoc_obj->cfg.ratemask_cfg;
|
||||
|
||||
if (!mac_ctx) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue