uas: add missing return
PATCH 1/1 uas: add missing return
Otherwise we run the error handling code even for successful requests.
Fixes 13b250b12ad3 ("uas: add stream number sanity checks.")
Reported-by Guenter Roeck <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/usb/dev-uas.c | 1 + 1 file changed, 1 insertion(+)
hw/usb/dev-uas.c +1 -0
@@ -908,6 +908,7 @@ static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) p->status =USB_RET_STALL ;break ; } +return ; err_stream:error_report ("%s: invalid stream %d" , __func__, p->stream);
Signature · 1 line
2.33.1
Quoted 8 lines · Gerd Hoffmann
Otherwise we run the error handling code even for successful requests.
Fixes 13b250b12ad3 ("uas: add stream number sanity checks.")Reported-by Guenter Roeck <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>--- hw/usb/dev-uas.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>