mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 12:24:07 -05:00
qcacld-3.0: Add check for vdev_id
Add sanity check for vdev_id in wma_lost_link_info_handler against wma_handle->max_bssid. Change-Id: I1f469b25ac88deb4d5bbaf754c0ea441e6cb04de CRs-Fixed: 2325718
This commit is contained in:
parent
81c1cd8a52
commit
d2639bd16e
1 changed files with 6 additions and 0 deletions
|
|
@ -337,6 +337,12 @@ void wma_lost_link_info_handler(tp_wma_handle wma, uint32_t vdev_id,
|
|||
QDF_STATUS qdf_status;
|
||||
struct scheduler_msg sme_msg = {0};
|
||||
|
||||
if (vdev_id >= wma->max_bssid) {
|
||||
WMA_LOGE("%s: received invalid vdev_id %d",
|
||||
__func__, vdev_id);
|
||||
return;
|
||||
}
|
||||
|
||||
/* report lost link information only for STA mode */
|
||||
if (wma_is_vdev_up(vdev_id) &&
|
||||
(WMI_VDEV_TYPE_STA == wma->interfaces[vdev_id].type) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue