Re: [PATCH v1] hw/usb/hcd-ehci: Handle get_dwords() failures in async writeback
Philippe Mathieu-Daudé <[email protected]>
| Newsgroups | gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
On 13/8/26 09:23, Jamin Lin wrote: > Coverity reports that ehci_writeback_async_complete_packet() ignores > the return value of get_dwords() when reading the QH and qTD. > > Handle read failures in the same way as QH and qTD verification > failures by freeing the packet and returning early. > > Signed-off-by: Jamin Lin <[email protected]> > --- > hw/usb/hcd-ehci.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Fixes: 2b3de6ada5d ("ehci: writeback_async_complete_packet: verify qh and qtd") Reviewed-by: Philippe Mathieu-Daudé <[email protected]>