mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Add check to validate vdev id
Get ARP stats command is sent to firmware with inactive vdev id in stats param resulting in firmware crash. Fix is to add check to validate vdev id before sending get ARP stats command to firmware. Change-Id: I1483573f4f9649c307f8d47466d9c7e234e9a78e CRs-Fixed: 2161031
This commit is contained in:
parent
4bbe4fc724
commit
3e4d96fbfa
1 changed files with 4 additions and 0 deletions
|
|
@ -6993,6 +6993,10 @@ static void wma_get_arp_req_stats(WMA_HANDLE handle,
|
|||
__func__);
|
||||
return;
|
||||
}
|
||||
if (!wma_is_vdev_valid(req_buf->vdev_id)) {
|
||||
WMA_LOGE("vdev id not active or not valid");
|
||||
return;
|
||||
}
|
||||
|
||||
arp_stats = (struct get_arp_stats *)req_buf;
|
||||
status = wmi_unified_get_arp_stats_req(wma_handle->wmi_handle,
|
||||
|
|
|
|||
Loading…
Reference in a new issue