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

Commit 259e975f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: q6adm: Resolve mem corruption in adm cb"

parents bec8d6d9 dcfb376d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */
#include <linux/module.h>
#include <linux/slab.h>
@@ -1668,7 +1668,7 @@ static int32_t adm_callback(struct apr_client_data *data, void *priv)
{
	uint32_t *payload;
	int port_idx, copp_idx, idx, client_id;
	int num_modules;
	uint32_t num_modules;
	int ret;
	int payload_size = 0, i = 0;
	struct msm_adsp_event_data *pp_event_package = NULL;