RE: [PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-09 Thread Yoshihiro Shimoda
> From: Jia-Ju Bai, On 2021/3/10 10:54, Yoshihiro Shimoda wrote: > >> From: Jia-Ju Bai, Sent: Tuesday, March 9, 2021 10:39 PM > >> On 2021/3/9 19:59, Yoshihiro Shimoda wrote: > From: Jia-Ju Bai, Sent: Sunday, March 7, 2021 6:01 PM > > When __usbhsf_pkt_get() returns NULL to pkt, no

Re: [PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-09 Thread Jia-Ju Bai
On 2021/3/10 10:54, Yoshihiro Shimoda wrote: Hi Jia-Ju, From: Jia-Ju Bai, Sent: Tuesday, March 9, 2021 10:39 PM On 2021/3/9 19:59, Yoshihiro Shimoda wrote: Hi Jia-Ju, Thank you for the patch! From: Jia-Ju Bai, Sent: Sunday, March 7, 2021 6:01 PM When __usbhsf_pkt_get() returns NULL to

RE: [PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-09 Thread Yoshihiro Shimoda
Hi Jia-Ju, > From: Jia-Ju Bai, Sent: Tuesday, March 9, 2021 10:39 PM > On 2021/3/9 19:59, Yoshihiro Shimoda wrote: > > Hi Jia-Ju, > > > > Thank you for the patch! > > > >> From: Jia-Ju Bai, Sent: Sunday, March 7, 2021 6:01 PM > >> > >> When __usbhsf_pkt_get() returns NULL to pkt, no error return

Re: [PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-09 Thread Jia-Ju Bai
Thanks for the reply! On 2021/3/9 19:59, Yoshihiro Shimoda wrote: Hi Jia-Ju, Thank you for the patch! From: Jia-Ju Bai, Sent: Sunday, March 7, 2021 6:01 PM When __usbhsf_pkt_get() returns NULL to pkt, no error return code of usbhsf_pkt_handler() is assigned. Yes. Also I realized that no

RE: [PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-09 Thread Yoshihiro Shimoda
Hi Jia-Ju, Thank you for the patch! > From: Jia-Ju Bai, Sent: Sunday, March 7, 2021 6:01 PM > > When __usbhsf_pkt_get() returns NULL to pkt, no error return code of > usbhsf_pkt_handler() is assigned. Yes. Also I realized that no error return code of usbhsf_pkt_handler() was assigned if the

[PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-07 Thread Jia-Ju Bai
When __usbhsf_pkt_get() returns NULL to pkt, no error return code of usbhsf_pkt_handler() is assigned. To fix this bug, ret is assigned with -EINVAL in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/usb/renesas_usbhs/fifo.c | 4 +++- 1 file changed, 3 insertions(+), 1