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:
parent
638dbe4f27
commit
ff44d107ad
3 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue