]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
MdeModulePkg/UsbBusDxe: Return error when the device is not present
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbBusDxe / UsbEnumer.c
index 0cded1eea7436254733d230a27d76e722f7410d2..eaa0d70024bb8a6b786d39a146ecb92c3bd5eb42 100644 (file)
@@ -719,6 +719,7 @@ UsbEnumerateNewDev (
 \r
   if (!USB_BIT_IS_SET (PortState.PortStatus, USB_PORT_STAT_CONNECTION)) {\r
     DEBUG ((EFI_D_ERROR, "UsbEnumerateNewDev: No device present at port %d\n", Port));\r
+    Status = EFI_NOT_FOUND;\r
     goto ON_ERROR;\r
   } else if (USB_BIT_IS_SET (PortState.PortStatus, USB_PORT_STAT_SUPER_SPEED)){\r
     Child->Speed      = EFI_USB_SPEED_SUPER;\r