From 35f63de1e1251aa54445e1434981668c777d3b76 Mon Sep 17 00:00:00 2001 From: Revathi Uddaraju Date: Fri, 30 Jun 2017 16:08:43 +0530 Subject: ASoC: msm-cpe: Resolve memory out of bound access Resolve memory out of bound access by correcting the length of the buffer to be copied. Change-Id: I2cc74a664399913acf67464a5f6827b100522676 Signed-off-by: Revathi Uddaraju --- sound/soc/msm/msm-cpe-lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/msm/msm-cpe-lsm.c b/sound/soc/msm/msm-cpe-lsm.c index 48f8e22e7faa..2d431a018315 100644 --- a/sound/soc/msm/msm-cpe-lsm.c +++ b/sound/soc/msm/msm-cpe-lsm.c @@ -2672,7 +2672,7 @@ static int msm_cpe_lsm_ioctl_compat(struct snd_pcm_substream *substream, event_status->payload_size; memcpy(udata_32->payload, event_status->payload, - u_pld_size); + event_status->payload_size); } } -- cgit v1.2.3