diff options
author | Michael Brown <mcb30@ipxe.org> | 2020-10-01 18:41:37 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2020-10-01 23:27:53 +0100 |
commit | 02201417104c751545dda261eb33f0012703d1ff (patch) | |
tree | ee42eeb837abb133d62bcde1d9072144845c7013 /src/include/ipxe/efi | |
parent | 02280dc642907b908f4b5c7e0d82d8ad1d51d574 (diff) | |
download | ipxe-02201417104c751545dda261eb33f0012703d1ff.zip ipxe-02201417104c751545dda261eb33f0012703d1ff.tar.gz ipxe-02201417104c751545dda261eb33f0012703d1ff.tar.bz2 |
[efi] Fix reporting of USB supported languages array
The length as returned by UsbGetSupportedLanguages() should not
include the length of the descriptor header itself.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r-- | src/include/ipxe/efi/efi_usb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/efi_usb.h b/src/include/ipxe/efi/efi_usb.h index 05b4fad..41d9cc6 100644 --- a/src/include/ipxe/efi/efi_usb.h +++ b/src/include/ipxe/efi/efi_usb.h @@ -24,7 +24,9 @@ struct efi_usb_device { /** Configuration descriptor */ struct usb_configuration_descriptor *config; /** Supported languages */ - struct usb_descriptor_header *languages; + uint16_t *lang; + /** Length of supported languages */ + size_t lang_len; /** List of interfaces */ struct list_head interfaces; }; |