Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9813c83 authored by Paul Zhang's avatar Paul Zhang Committed by Manikandan Mohan
Browse files

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: default avatarPaul Zhang <paulz@codeaurora.org>
Signed-off-by: default avatarManikandan Mohan <manikand@codeaurora.org>
parent 8c86f959
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
// 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,
	},
};