Re: [PATCH 1/2] usb: gadget: f_uac2: fix memory leak in UAC2_RATE_ATTRIBUTE store

From: Peter Korsgaard

Date: Wed Jul 15 2026 - 05:58:26 EST


>>>>> "Greg" == Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> writes:

> On Mon, Jun 15, 2026 at 06:52:01PM +0800, Ming Qing wrote:
>> On Sun, Jun 14, 2026 at 5:39 PM +0800, Peter Korsgaard wrote:
>> > FYI, I see the same issue is also fixed in the recently proposed
>> > "[PATCH] usb: gadget: uac: validate rate list length before storing"
>> >
>> > https://lore.kernel.org/linux-usb/20260519143319.147494-1-a0yami@xxxxxxxxxxx/
>>
>> Yes, that includes the same buffer lifetime fix. I'm happy to split
>> it up if that makes it easier to pick.
>>

> Please do, I just took that one now and this series does not apply.

With "usb: gadget: uac: validate rate list length before storing"
applied, these two patches are afaik no longer needed as that patch also
fixes the same leak.

--
Bye, Peter Korsgaard