RE: [EXT] Re: [PATCH v2 1/1] usb: gadget: Assign an unique name for each configfs driver

From: Frank Li
Date: Tue Dec 13 2022 - 18:47:05 EST


>
> Hi,
>
> Also, out of curiosity, any link with this patch:
>
> https://lore.kernel.org/all/20221213041203.21080-1-chanh@xxxxxxxxxxxxxxxxxxxxxx/
>
> Not exactly the same, but not very different.
>
> (adding Chanh Nguyen in cc)

Yes, it is almost the same.

I think it is not good place to free driver.name at gadget_drop function(), it should be close to kfree(gi).

>
> CJ
>