From bac4e185fb69e011049132ff9a2165f45e54eec3 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 21 Mar 2020 13:12:53 +0100 Subject: [PATCH] [USBHUB] Set the Removable flag for all ports of a USB hub --- drivers/usb/usbhub/pnp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/usbhub/pnp.c b/drivers/usb/usbhub/pnp.c index 5607faa0db1..e7203027cf0 100644 --- a/drivers/usb/usbhub/pnp.c +++ b/drivers/usb/usbhub/pnp.c @@ -2704,6 +2704,9 @@ USBH_PdoPnP(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension, DeviceCapabilities->Size = Size; DeviceCapabilities->Version = Version; + /* All devices connected to a hub are removable */ + DeviceCapabilities->Removable = 1; + Status = STATUS_SUCCESS; break;