lkml.org 
[lkml]   [2024]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [syzbot] [media?] [usb?] INFO: task hung in vb2_video_unregister_device
Date
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c b/drivers/media/common/videobuf2/videobuf2-v4l2.c
index c575198e8354..437f80551a2d 100644
--- a/drivers/media/common/videobuf2/videobuf2-v4l2.c
+++ b/drivers/media/common/videobuf2/videobuf2-v4l2.c
@@ -1262,8 +1262,7 @@ void vb2_video_unregister_device(struct video_device *vdev)
get_device(&vdev->dev);
video_unregister_device(vdev);
if (vdev->queue) {
- struct mutex *lock = vdev->queue->lock ?
- vdev->queue->lock : vdev->lock;
+ struct mutex *lock = vdev->queue->lock;

if (lock)
mutex_lock(lock);
\
 
 \ /
  Last update: 2024-05-27 15:27    [W:0.056 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site