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:
Paul Zhang 2020-11-09 14:56:31 +08:00 • committed by Manikandan Mohan
commit c9813c8358

View file

@ -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,
},
};