Преглед на файлове

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
Priyadarshnee S преди 6 години
родител
ревизия
a092ad1662
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      os_if/linux/scan/src/wlan_cfg80211_scan.c

+ 0 - 1
os_if/linux/scan/src/wlan_cfg80211_scan.c

@@ -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;