On 11/5/20 2:41 PM, Gerd Hoffmann wrote: > The v variable goes negative for reg < 0x20. Reorder the code > to first sanity check then calculate v and assign intr to make > sanity checkers happy. > > Buglink: https://bugs.launchpad.net/qemu/+bug/1902112 > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > hw/usb/hcd-xhci.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>