qcacld-3.0: Validate wma handle before using it

Validate wma handle before using it

Change-Id: I3c78a21bc515422d5443bdac7c2fc897e6d51cff
CRs-Fixed: 2668303
This commit is contained in:
Jianmin Zhu 2020-04-23 10:58:48 +08:00 • committed by nshrivas
commit 6f122afe83

View file

@ -196,6 +196,11 @@ lim_mlm_add_bss(struct mac_context *mac_ctx,
tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA);
struct bss_params *addbss_param = NULL;
if (!wma) {
pe_err("Invalid wma handle");
return eSIR_SME_INVALID_PARAMETERS;
}
mlme_obj = wlan_vdev_mlme_get_cmpt_obj(vdev);
if (!mlme_obj) {
pe_err("vdev component object is NULL");