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

Commit ceef6e6e authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

ASoC: msm: qdsp6v2: fix invalid access to memory



During SSR, write done events are dispatched to
PCM driver as part of cleanup by DSP, and driver
is not supposed to send any write commands further.
Avoid sending write commands incase of SSR is in
progress.

Change-Id: Idfdaa04c7e7dde8482269bf64317aac423b807b3
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 18c43109
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -163,7 +163,7 @@ static void event_handler(uint32_t opcode,
		wake_up(&the_locks.write_wait);
		if (!atomic_read(&prtd->start))
			break;
		if (!prtd->mmap_flag)
		if (!prtd->mmap_flag || prtd->reset_event)
			break;
		if (q6asm_is_cpu_buf_avail_nolock(IN,
				prtd->audio_client,