diff options
| author | Alexandre Courbot <acourbot@chromium.org> | 2017-04-25 09:19:43 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-13 19:56:49 +0300 |
| commit | 17d716e9264c43f541eccbd5b7b11278b1fb65cb (patch) | |
| tree | 8991d3d9e0b925c9c21a7c6c116f34da753eb30e /include/uapi/linux | |
| parent | 18726a349de262f5bf03fab73fc7c46e79e6c41e (diff) | |
| download | linux-17d716e9264c43f541eccbd5b7b11278b1fb65cb.tar.xz | |
[media] s5p-jpeg: fix recursive spinlock acquisition
v4l2_m2m_job_finish(), which is called from the interrupt handler with
slock acquired, can call the device_run() hook immediately if another
context was in the queue. This hook also acquires slock, resulting in
a deadlock for this scenario.
Fix this by releasing slock right before calling v4l2_m2m_job_finish().
This is safe to do as the state of the hardware cannot change before
v4l2_m2m_job_finish() is called anyway.
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
