]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xhci: dbc: Flush queued requests before stopping dbc
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 27 Jun 2025 14:41:22 +0000 (17:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jun 2025 15:20:25 +0000 (17:20 +0200)
commitefe3e3ae5a66cb38ef29c909e951b4039044bae9
tree077b09209a5d8520560431e83e4a415d69346988
parent2b857d69a5e116150639a0c6c39c86cc329939ee
xhci: dbc: Flush queued requests before stopping dbc

Flush dbc requests when dbc is stopped and transfer rings are freed.
Failure to flush them lead to leaking memory and dbc completing odd
requests after resuming from suspend, leading to error messages such as:

[   95.344392] xhci_hcd 0000:00:0d.0: no matched request

Cc: stable <stable@kernel.org>
Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250627144127.3889714-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c