Re: [PATCH] usb: gadget: legacy: fix error return code of msg_bind()

From: Jia-Ju Bai
Date: Tue Mar 23 2021 - 08:38:57 EST

On 2021/3/23 19:35, Greg KH wrote:
On Sun, Mar 07, 2021 at 12:49:15AM -0800, Jia-Ju Bai wrote:
When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error
return code of msg_bind() is assigned.
To fix this bug, status is assigned with -ENOMEM in this case.

Reported-by: TOTE Robot <oslab@xxxxxxxxxxxxxxx
Reported-by: TOTE Robot <oslab@xxxxxxxxxxxxxxx>>
These lines are not written correctly :(

Please fix up and resend.

Sorry for the mistake.
I will fix it and send a V2 patch.

Best wishes,
Jia-Ju Bai