Skip unexpected descriptors
This commit is contained in:
parent
fafc23e90a
commit
443a6c4b21
2 changed files with 17 additions and 2 deletions
|
@ -31,6 +31,12 @@ typedef enum {
|
|||
GRUB_USB_DESCRIPTOR_HUB = 0x29
|
||||
} grub_usb_descriptor_t;
|
||||
|
||||
struct grub_usb_desc
|
||||
{
|
||||
grub_uint8_t length;
|
||||
grub_uint8_t type;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct grub_usb_desc_device
|
||||
{
|
||||
grub_uint8_t length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue