mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
net: cnss2: Add second element to avoid OOB issue
The struct coex_antenna_switch_to_mdm_resp_msg_v01_ei is missing with second element and causing OOB issue with KASAN. Change-Id: Iac53f5b4883a620f5179fe2caa7e2169d487c619 CRs-Fixed: 2814572 Signed-off-by: Paul Zhang <paulz@codeaurora.org> Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
This commit is contained in:
parent
8c86f95982
commit
c9813c8358
1 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2019, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/soc/qcom/qmi.h>
|
||||
|
||||
|
|
@ -92,4 +92,9 @@ struct qmi_elem_info coex_antenna_switch_to_mdm_resp_msg_v01_ei[] = {
|
|||
resp),
|
||||
.ei_array = qmi_response_type_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue