mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
ee7e929a8b
commit
6f122afe83
1 changed files with 5 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue