]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sun, 7 Mar 2021 09:00:30 +0000 (01:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 11:42:15 +0000 (12:42 +0100)
commit179b083f2d29b5444737a32e808920581f772108
tree5cb25a4056c48bc79a8614fd7925ec3fcb124194
parent22ae8d3f4550b0df0b49aa9565d7d6332e7ad53e
usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

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 <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20210307090030.22369-1-baijiaju1990@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/fifo.c