qcacld-3.0: Calculate buf_len properly for extscan hotlist event buffer
Calculate buf_len properly for extscan hotlist event buffer in wma_extscan_hotlist_match_event_handler() Change-Id: I923f0d86d83902539a7d3a7b8ea8322dcb83ba00 CRs-Fixed: 2161977
This commit is contained in:

committed by
snandini

parent
b6fdb6311f
commit
ff399e36cb
@@ -4260,7 +4260,7 @@ int wma_extscan_hotlist_match_event_handler(void *handle,
|
||||
}
|
||||
|
||||
buf_len = sizeof(wmi_extscan_hotlist_match_event_fixed_param) +
|
||||
(4 * sizeof(uint32_t)) +
|
||||
WMI_TLV_HDR_SIZE +
|
||||
(numap * sizeof(wmi_extscan_wlan_descriptor));
|
||||
|
||||
if (buf_len > len) {
|
||||
|
Reference in New Issue
Block a user