]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: Guard all calls to xhci_wait_for_event
authorHector Martin <marcan@marcan.st>
Sun, 29 Oct 2023 06:37:38 +0000 (15:37 +0900)
committerMarek Vasut <marex@denx.de>
Fri, 1 Dec 2023 13:06:04 +0000 (14:06 +0100)
commit8d1e03f984c7467d7c8883f15dea14b2f8b4c0e2
tree2cb1fb2b67b4045902e79d5459299f78e17700d8
parent43f2873fa98b1da6eb56d756315c7bd7db63db27
usb: xhci: Guard all calls to xhci_wait_for_event

xhci_wait_for_event returns NULL on timeout, so the caller always has to
check for that. This addresses immediate explosions in this part
of the code when timeouts happen, but not the root cause for the
timeout.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c