mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
media: v4l2-ioctl.c: fix missing unlock in __video_do_ioctl()
If dev_debug was active, then the code could return without unlocking the
core mutex. Replace the return with a 'goto unlock' to ensure proper unlocking.
Fixes: 73a110623e ("v4l2-core: push taking ioctl mutex down to ioctl handler")
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
8cbc3a856f
commit
5983d3bca5
1 changed files with 1 additions and 1 deletions
|
|
@ -2777,7 +2777,7 @@ done:
|
|||
if (dev_debug & (V4L2_DEV_DEBUG_IOCTL | V4L2_DEV_DEBUG_IOCTL_ARG)) {
|
||||
if (!(dev_debug & V4L2_DEV_DEBUG_STREAMING) &&
|
||||
(cmd == VIDIOC_QBUF || cmd == VIDIOC_DQBUF))
|
||||
return ret;
|
||||
goto unlock;
|
||||
|
||||
v4l_printk_ioctl(video_device_node_name(vfd), cmd);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue