Skip to content
Snippets Groups Projects
Commit 1c6c0b9e authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

uas: add missing return


Otherwise we run the error handling code even for successful requests.

Fixes: 13b250b1 ("uas: add stream number sanity checks.")
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211210080659.2537084-1-kraxel@redhat.com>
parent 87800d94
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment