Re: [PATCH] usb: gadget: legacy: fix error return code of msg_bind()
From: Greg KH
Date: Tue Mar 23 2021 - 07:36:11 EST
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.
thanks,
greg k-h