|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -1206,7 +1206,8 @@ static void util_scan_update_esp_data(struct wlan_esp_ie *esp_information,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- for (i = 0; i < total_elements; i++) {
|
|
|
+ for (i = 0; i < total_elements &&
|
|
|
+ data < ((uint8_t *)esp_ie + esp_ie->esp_len + 3); i++) {
|
|
|
esp_info = (struct wlan_esp_info *)data;
|
|
|
if (esp_info->access_category == ESP_AC_BK) {
|
|
|
qdf_mem_copy(&esp_information->esp_info_AC_BK,
|