From b01240a15a40907346d987603ef8cf9b110af314 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Thu, 7 Jun 2018 18:00:15 -0700 Subject: [PATCH] dsp: Fix AFE RTC set parameter Fix offset address to use set parameter structure while copying data from user instead of get parameter structure for AFE_PORT_CMD_SET_PARAM_V3 case. CRs-Fixed: 2256728 Change-Id: I61e41f366f365734a47080b79179fbe3021ee8a7 Signed-off-by: Vignesh Kulothungan --- dsp/rtac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/rtac.c b/dsp/rtac.c index b415ef0ed0ee..9d7c0d472580 100644 --- a/dsp/rtac.c +++ b/dsp/rtac.c @@ -1354,7 +1354,7 @@ static int send_rtac_afe_apr(void __user *buf, uint32_t opcode) if (copy_from_user(rtac_cal[AFE_RTAC_CAL].cal_data.kvaddr, (void __user *) buf + offsetof(struct rtac_afe_user_data, - v3_get.param_hdr), + v3_set.param_hdr), payload_size)) { pr_err("%s: Could not copy payload from user buffer\n", __func__);