From 3e4d96fbfafba121027c76d20f35c477f5bf53c2 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Tue, 19 Dec 2017 14:09:04 +0530 Subject: [PATCH] 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 --- core/wma/src/wma_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 0997d7c449b4..f6dae48a494f 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -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,