Skip unexpected descriptors

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-01 23:08:03 +02:00
parent fafc23e90a
commit 443a6c4b21
2 changed files with 17 additions and 2 deletions

View file

@ -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;