RE: [PATCH v1] hw/usb/hcd-ehci: Handle get_dwords() failures in async writeback

Jamin Lin <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <TYZPR06MB49808E3AB5205940589E3CF6FCDA2@TYZPR06MB4980.apcprd06.prod.outlook.com>
+ Cédric Le Goater <[email protected]>

> -----Original Message-----
> From: Philippe Mathieu-Daudé <[email protected]>
> Sent: Thursday, August 13, 2026 5:43 PM
> To: Jamin Lin <[email protected]>; [email protected]; Philippe
> Mathieu-Daudé <[email protected]>; Paolo Bonzini <[email protected]>;
> open list:All patches CC here <[email protected]>
> Cc: Troy Lee <[email protected]>
> Subject: Re: [PATCH v1] hw/usb/hcd-ehci: Handle get_dwords() failures in async
> writeback
> 
> 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]>

Thanks for adding the Fixes tag.
I’ve also added the Resolves tag.

Resolves: Coverity CID 1685236

Jamin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.