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

Commit 35f63de1 authored by Revathi Uddaraju's avatar Revathi Uddaraju Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarRevathi Uddaraju <revathiu@codeaurora.org>
parent c1a5075d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
			}
		}