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

Commit 2a98c1c0 authored by Jeya R's avatar Jeya R
Browse files

msm: adsprpc: return fastrpc ioctl call if process exit sequence start



Added check to return fastrpc ioctl call when process exit sequence is
in progress.

Change-Id: I83915cb3fb75cc69d245a56800dcf42b492e01ea
Acked-by: default avatarNishant Chaubey <chaubey@qti.qualcomm.com>
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent b794964c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6054,7 +6054,7 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
		goto bail;

	spin_lock(&fl->hlock);
	if (fl->file_close == FASTRPC_PROCESS_EXIT_START) {
	if (fl->file_close >= FASTRPC_PROCESS_EXIT_START) {
		err = -ESHUTDOWN;
		pr_warn("adsprpc: fastrpc_device_release is happening, So not sending any new requests to DSP\n");
		spin_unlock(&fl->hlock);