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 <chaubey@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
This commit is contained in:
Jeya R 2021-05-07 12:18:31 +05:30
commit 2a98c1c02d

View file

@ -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);