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

Commit 1c221b58 authored by Asish Bhattacharya's avatar Asish Bhattacharya
Browse files

msm: qdsp5: memset stack buffer allocation.



This is needed to avoid garbage data in uninitialized variables.

Change-Id: Ic5ee90eeb6cd813c7d1dbfcb7a85a93e6ede7d22
CRs-Fixed: 554317
Signed-off-by: default avatarAsish Bhattacharya <asishb@codeaurora.org>
parent 94b8281c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -626,6 +626,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg)

	if (cmd == AUDIO_GET_STATS) {
		struct msm_audio_stats stats;
		memset(&stats, 0, sizeof(stats));
		stats.byte_count = atomic_read(&audio->out_bytes);
		if (copy_to_user((void*) arg, &stats, sizeof(stats)))
			return -EFAULT;