qcacmn: Fix double free in wlan_cfg80211_scan()

In wlan_cfg80211_scan(), when "DNBS check fails", mem free of scan req is
done. Mem free of scan req is done again at the label "err" which would
end up in a double free.

Change-Id: Ib757832c1bd54372fba45cbc5ee306d0d7b233b0
CRs-Fixed: 2408703
This commit is contained in:
Priyadarshnee S
2019-03-05 16:17:35 +05:30
committed by nshrivas
vanhempi 6db1ddac13
commit a092ad1662

Näytä tiedosto

@@ -1453,7 +1453,6 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
if (QDF_IS_STATUS_ERROR(qdf_status)) {
cfg80211_err("DNBS check failed");
qdf_mem_free(req);
qdf_mem_free(chl);
chl = NULL;
ret = -EINVAL;