mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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:
parent
b6fdb6311f
commit
ff399e36cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue