diff mbox series

[RESEND,10/10] usb-hub: Fix handling port power control messages

Message ID 20241112170152.217664-11-linux@roeck-us.net (mailing list archive)
State New
Headers show
Series usb/uhci: Add UHCI sysbus support, and enable for AST machines | expand

Commit Message

Guenter Roeck Nov. 12, 2024, 5:01 p.m. UTC
The ClearPortFeature control message fails for PORT_POWER because there
is no break; at the end of the case statement, causing it to fall through
to the failure handler. Add the missing break; to solve the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
Change from RFC:
    New patch

 hw/usb/dev-hub.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c
index 4da91d151c..2872c6712a 100644
--- a/hw/usb/dev-hub.c
+++ b/hw/usb/dev-hub.c
@@ -532,6 +532,7 @@  static void usb_hub_handle_control(USBDevice *dev, USBPacket *p,
                     usb_hub_port_clear(port, PORT_STAT_SUSPEND);
                     port->wPortChange = 0;
                 }
+                break;
             default:
                 goto fail;
             }