]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/usb/hcd-xhci: Unmap canceled packet
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Fri, 18 Apr 2025 05:51:48 +0000 (14:51 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:00:42 +0000 (17:00 +0200)
commitaca4967567aaa168ce51d54145ba970aafb135de
tree9ed4dc473aad20b21089866c75a250aa400912bc
parentb939b8e42acedc2ff35534f96fae026f8fe2efcf
hw/usb/hcd-xhci: Unmap canceled packet

When the Stop Endpoint Command is received, packets running
asynchronously are canceled and then all packets are cleaned up. Packets
running asynchronously hold the DMA mapping so cleaning the packets leak
the mapping. Remove the mapping after canceling packets to fix the leak.

Fixes: 62c6ae04cf43 ("xhci: Initial xHCI implementation")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250418-xhc-v1-1-bb32dab6a67e@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/usb/hcd-xhci.c