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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux