Re: [PATCH v2] usb: gadget: uvc: Fix Null Pointer Dereference in uvcg_video_init()
From: Greg KH
Date: Thu Jul 30 2026 - 03:30:04 EST
On Thu, Jul 30, 2026 at 12:32:07PM +0530, Jeffin Philip wrote:
> In uvcg_video_init(), if kthread_run_worker() fails,
> the error logged uses uvcg_err(), however, the pointer it uses:
> video->uvc is not assigned at this point, triggering a null
> pointer dereference. Fix this by directly using uvc->func which
> is assigned already.
>
> Reported-by: syzbot+8dcac923582c28505fd7@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=8dcac923582c28505fd7
> Fixes: 7ea95b110811fa8e41f5960c278bcfc80b8b21c1 (usb: gadget: uvc: rename functions to avoid conflicts with host uvc)
Can you please shorten the sha1, like the documentation should have
mentioned? And did checkpatch.pl catch this?
thanks,
greg k-h