qcacld-3.0: Add NULL check for adapter->vdev in interop_ap
In the function __wlan_cfg80211_set_interop_issues_ap_config the adapter->vdev pointer is being passed to fetch the psoc without any prior NULL check. This can lead to NULL pointer dereference. Add a NULL sanity check before performing action based on adapter->vdev CRs-Fixed: 2681524 Change-Id: I0c58a3a263fe5166e0c13a5f866f4bccfa031086
This commit is contained in:

committed by
nshrivas

parent
cdfa210156
commit
9b181b365f
@@ -180,6 +180,11 @@ __wlan_cfg80211_set_interop_issues_ap_config(struct wiphy *wiphy,
|
||||
struct wlan_interop_issues_ap_info interop_issues_ap = {0};
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
if (!adapter->vdev) {
|
||||
osif_err("Invalid vdev");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
psoc = wlan_vdev_get_psoc(adapter->vdev);
|
||||
if (!psoc) {
|
||||
osif_err("Invalid psoc");
|
||||
|
Reference in New Issue
Block a user