hw/usb/hcd-xhci: Check whether DMA accesses fail
commit0b33bb394d0d02918679064caa11ef59e5ff3924
authorThomas Huth <thuth@redhat.com>
Wed, 17 Aug 2022 16:00:16 +0000 (17 18:00 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Sep 2022 12:38:27 +0000 (23 14:38 +0200)
tree95898c34d27d043d6096ef63e2feaf548611bea5
parent17b55372b509a253abed9d7d4a81772f6067220f
hw/usb/hcd-xhci: Check whether DMA accesses fail

If a guest sets up bad descriptors, it could force QEMU to access
non-existing memory regions. Thus we should check the return value
of dma_memory_read/write() to make sure that these errors don't go
unnoticed.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220817160016.49752-1-thuth@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c