Skip to contentSkip to conversation

uas: add missing return

PATCH In review Gerd Hoffmann 2 participants 2 messages Dec 10, 2021

lore
Share & tools
lore
#0 lore raw

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.")
---
 hw/usb/dev-uas.c | 1 +
 1 file changed, 1 insertion(+)
hw/usb/dev-uas.c +1 -0
index 599d6b52a012..c9f295e7e449 100644
@@ -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