From faf0133215e0a1513df950ac2d878d1f8db47c48 Mon Sep 17 00:00:00 2001 From: Yue Sun Date: Tue, 27 Jun 2023 20:14:00 -0500 Subject: [PATCH] Revert "qcacld-3.0: Fix OOB issue when access wma_find_vdev_by_addr" This reverts commit 8654c2c54d6a4668deaa89f754b6ae92716b10d3. Change-Id: I7cd38fb66ed16a93247d5a2d4f983dbc84ff6d0f Reviewed-on: https://gerrit.mot.com/2658097 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhilu Yin Submit-Approved: Jira Key --- core/wma/src/wma_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 9fcafc205c6d..e6136508c682 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -3456,7 +3456,7 @@ int wma_form_rx_packet(qdf_nbuf_t buf, if (status) return status; } else if (wma_find_vdev_id_by_addr(wma_handle, wh->i_addr1, - &vdev_id)) { + &vdev_id) == QDF_STATUS_SUCCESS) { status = wma_check_and_process_rmf_frame(wma_handle, vdev_id, &wh,