]> git.baikalelectronics.ru Git - kernel.git/commit
media: vimc: streamer: if kthread_stop fails, ignore the error
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Wed, 22 Jan 2020 09:52:51 +0000 (10:52 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 16:16:56 +0000 (17:16 +0100)
commitcf52ce13c5c15a7b9d7c8573e73cb849366db62d
tree3ea7c79be663c03bd59ee0f732f29033699e9830
parente59b5d7d93da0db95a1f872b4391cf0e112a958a
media: vimc: streamer: if kthread_stop fails, ignore the error

Ignore errors returned from kthread_stop since the
vimc subdevices should still be notified that
streaming stopped so they can release the memory for
the streaming, and also kthread should be set to NULL.
kthread_stop can return -EINTR in case the thread
did not yet run. This can happen if userspace calls
streamon and streamoff right after.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/vimc/vimc-streamer.c