From 39fabd2c13d641b50918eb6e10939c29d95cf428 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Thu, 13 Jul 2023 13:37:45 +0800 Subject: [PATCH] qcacmn: Zero memory of mlo_link_set_active_resp struct in event handler Zero memory of mlo_link_set_active_resp struct in event handler to avoid invalid value in it. Change-Id: I18cbe0903bea23c9069a84af8207f4265a7111e1 CRs-Fixed: 3558678 --- target_if/mlo_mgr/src/target_if_mlo_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_if/mlo_mgr/src/target_if_mlo_mgr.c b/target_if/mlo_mgr/src/target_if_mlo_mgr.c index 1b5f0f3dd6..a07040d19b 100644 --- a/target_if/mlo_mgr/src/target_if_mlo_mgr.c +++ b/target_if/mlo_mgr/src/target_if_mlo_mgr.c @@ -67,7 +67,7 @@ target_if_mlo_link_set_active_resp_handler(ol_scn_t scn, uint8_t *data, target_if_err("wmi_handle is null"); return -EINVAL; } - + qdf_mem_zero(&resp, sizeof(resp)); if (wmi_extract_mlo_link_set_active_resp(wmi_handle, data, &resp) != QDF_STATUS_SUCCESS) { target_if_err("Unable to extract mlo link set active resp");