Re: [PATCH 2/2] usb: gadget: raw_gadget: fix memory leak on connect event failure
From: Greg KH
Date: Sun Nov 22 2026 - 23:48:37 EST
On Mon, Nov 23, 2026 at 09:17:50AM +0800, Zhijian Han wrote:
> On Fri, Nov 20, 2026 at 09:17:32PM +0800, Greg Kroah-Hartman wrote:
> > On Sat, Aug 22, 2026 at 10:48:50AM +0800, hanzhijian wrote:
> > > gadget_bind() allocates an ep0 request and stores it in dev->req. If
> > > raw_queue_event() fails to queue the connect event, the function
> > > returns without releasing the request, leaking it.
> > >
> > > Release the request before returning in that case.
> > >
> > > Reported-by: syzbot+d83b3c49738aea97c0e5@xxxxxxxxxxxxxxxxxxxxxxxxx
> > > Link: https://syzkaller.appspot.com/bug?extid=d83b3c49738aea97c0e5
> > > Signed-off-by: hanzhijian <hanzhijian1991@xxxxxxxxx>
> >
> > Full name please.
>
> Apologies. Please use:
>
> Signed-off-by: Zhijian Han <hanzhijian1991@xxxxxxxxx>
Please send a new version with this corrected