From 2a98c1c02de1a87e71c9947d35bce1c1d8df5d17 Mon Sep 17 00:00:00 2001 From: Jeya R Date: Fri, 7 May 2021 12:18:31 +0530 Subject: [PATCH] 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: Nishant Chaubey Signed-off-by: Jeya R --- drivers/char/adsprpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 605625749eda..7e94aec0461a 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -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);