LF-3217: media: isi: cap: call streamoff if the process abnormal exit
authorGuoniu.zhou <guoniu.zhou@nxp.com>
Fri, 29 Jan 2021 02:29:11 +0000 (10:29 +0800)
committerGuoniu.zhou <guoniu.zhou@nxp.com>
Fri, 29 Jan 2021 09:48:08 +0000 (17:48 +0800)
commitdf6f68c064a2304895031ba64588a96d3b7aec5b
tree18aeb22cff1033393734342b32100b346157bd0f
parent41fdb664eaf01ace42d07be41dee45923585be74
LF-3217: media: isi: cap: call streamoff if the process abnormal exit

For normal case, userspace should call streamon/streamoff balance, but
for some special case, the process will be killed or terminated and the
streamoff ioctl will be ignored. So driver need to handle the case.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
drivers/staging/media/imx/imx8-isi-cap.c
drivers/staging/media/imx/imx8-isi-core.h