Re: [PATCH] usb: gadget: fix null pointer dereference in usb_put_function_instance()
From: Greg KH
Date: Thu Aug 27 2026 - 01:03:26 EST
On Thu, Aug 27, 2026 at 10:07:46AM +0530, Jeffin Philip wrote:
> On Sun, 16 Aug 2026 11:47:12 +0530, Jeffin Philip wrote:
>
> >usb_put_function_instance() attempts to dereference fd inside fi struct
> >to get mod in uvc_alloc_inst() error path. However, fd is not allocated
> >until later in try_get_usb_function_instance() after allocating fi in
> >uvc_alloc_inst() and thus guranteed to be null in error path. Fix this
> >by adding a null check for fi->fd that returns if fd is null.
>
> Friendly ping, let me know if you want me to fix anything.
It's the middle of the merge window, we can't do anything until after
-rc1 is out.
In the meantime, please help review other patches on the list so that
yours rises to the top.
thanks,
greg k-h