uas: add missing return
Otherwise we run the error handling code even for successful requests.
Fixes: 13b250b12a
("uas: add stream number sanity checks.")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211210080659.2537084-1-kraxel@redhat.com>
This commit is contained in:
parent
87800d9405
commit
1c6c0b9ec1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user