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