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
This commit is contained in:
Liangwei Dong 2023-07-13 13:37:45 +08:00 committed by Rahul Choudhary
parent d5bf598373
commit 39fabd2c13

View File

@ -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");