mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
Skip incorrect USB devices.
* grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if configcnt == 0. * include/grub/usb.h (grub_usb_err_t): New enum value GRUB_USB_ERR_BADDEVICE.
This commit is contained in:
1 parent
638dbe4f27
commit
ff44d107ad
3 files changed
+17
-1
No files matched your search
+2
-1
@@ -38,7 +38,8 @@ typedef enum
|
||||
GRUB_USB_ERR_BABBLE,
|
||||
GRUB_USB_ERR_TIMEOUT,
|
||||
GRUB_USB_ERR_BITSTUFF,
|
||||
GRUB_USB_ERR_UNRECOVERABLE
|
||||
GRUB_USB_ERR_UNRECOVERABLE,
|
||||
GRUB_USB_ERR_BADDEVICE
|
||||
} grub_usb_err_t;
|
||||
|
||||
typedef enum
|
||||
|
||||
Reference in new issue
Block a user