Re: [syzbot] [media?] WARNING in uvc_status_unregister
From: Hillf Danton
Date: Sun Oct 20 2024 - 04:07:28 EST
On Sat, 19 Oct 2024 23:44:28 -0700
> syzbot found the following issue on:
>
> HEAD commit: 15e7d45e786a Add linux-next specific files for 20241016
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10560240580000
#syz test
--- x/drivers/media/usb/uvc/uvc_status.c
+++ y/drivers/media/usb/uvc/uvc_status.c
@@ -372,6 +372,8 @@ int uvc_status_resume(struct uvc_device
void uvc_status_suspend(struct uvc_device *dev)
{
+ if (!dev->int_urb)
+ return;
guard(mutex)(&dev->status_lock);
if (dev->status_users)
--