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:
Himanshu Agarwal
2017-12-26 17:21:28 +05:30
committed by snandini
부모 b6fdb6311f
커밋 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) {