From d84070d05488b2d4997f8d692cb95e7146a8ab78 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Wed, 22 Apr 2020 10:29:11 +0530 Subject: [PATCH] qcacld-3.0: KW issue in wma_update_phymode_on_roam vdev_mlme was not checked for null before getting dereferenced Change-Id: I09a696b66304cce525ca6ec382f51799b1b64daf CRs-Fixed: 2669335 --- core/wma/src/wma_scan_roam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index bb24935afc3b..3c45d48a8cf1 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -2793,6 +2793,8 @@ static void wma_update_phymode_on_roam(tp_wma_handle wma, uint8_t *bssid, des_chan = wlan_vdev_mlme_get_des_chan(iface->vdev); des_chan->ch_phymode = bss_phymode; + if (!vdev_mlme) + return; /* Till conversion is not done in WMI we need to fill fw phy mode */ vdev_mlme->mgmt.generic.phy_mode = wma_host_to_fw_phymode(bss_phymode);