android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hongyu Xie 1879db4f25 xhci: Prevent futile URB re-submissions due to incorrect return value.
commit 243a1dd7ba48c120986dd9e66fee74bcb7751034 upstream.

The -ENODEV return value from xhci_check_args() is incorrectly changed
to -EINVAL in a couple places before propagated further.

xhci_check_args() returns 4 types of value, -ENODEV, -EINVAL, 1 and 0.
xhci_urb_enqueue and xhci_check_streams_endpoint return -EINVAL if
the return value of xhci_check_args <= 0.
This causes problems for example r8152_submit_rx, calling usb_submit_urb
in drivers/net/usb/r8152.c.
r8152_submit_rx will never get -ENODEV after submiting an urb when xHC
is halted because xhci_urb_enqueue returns -EINVAL in the very beginning.

[commit message and header edit -Mathias]

Fixes: 203a86613f ("xhci: Avoid NULL pointer deref when host dies.")
Cc: stable@vger.kernel.org
Signed-off-by: Hongyu Xie <xiehongyu1@kylinos.cn>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220215123320.1253947-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-02 11:41:15 +01:00
..
atm
c67x00
cdns3 usb: cdns3: fix race condition before setting doorbell 2021-10-06 15:42:30 +02:00
chipidea USB: chipidea: fix interrupt deadlock 2021-11-17 09:48:27 +01:00
class USB: cdc-acm: fix break reporting 2021-10-13 10:08:16 +02:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:52:52 +01:00
core USB: core: Fix hang in usb_kill_urb by adding memory barriers 2022-02-01 17:24:35 +01:00
dwc2 usb: dwc2: gadget: don't try to disable ep0 in dwc2_hsotg_suspend 2022-02-16 12:52:49 +01:00
dwc3 usb: dwc3: gadget: Let the interrupt handler disable bottom halves. 2022-03-02 11:41:15 +01:00
early
gadget USB: gadget: validate endpoint index for xilinx udc 2022-03-02 11:41:13 +01:00
host xhci: Prevent futile URB re-submissions due to incorrect return value. 2022-03-02 11:41:15 +01:00
image
isp1760
misc usb: ftdi-elan: fix memory leak on device disconnect 2022-01-27 09:19:34 +01:00
mon
mtu3 usb: mtu3: fix interval value for intr and isoc 2022-01-11 15:23:33 +01:00
musb usb: musb: tusb6010: check return value after calling platform_get_resource() 2021-11-26 10:47:14 +01:00
phy usb: phy: tahvo: add IRQ check 2021-09-15 09:47:35 +02:00
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 13:31:00 +02:00
roles
serial USB: serial: option: add Telit LE910R1 compositions 2022-03-02 11:41:14 +01:00
storage usb-storage: Add unusual-devs entry for VL817 USB-SATA bridge 2022-02-01 17:24:35 +01:00
typec ucsi_ccg: Check DEV_INT bit only when starting CCG4 2022-02-01 17:24:35 +01:00
usbip usbip:vhci_hcd USB port can get stuck in the disabled state 2021-09-22 12:26:35 +02:00
Kconfig
Makefile
usb-skeleton.c