From 02201417104c751545dda261eb33f0012703d1ff Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Oct 2020 18:41:37 +0100 Subject: [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 --- src/include/ipxe/efi/efi_usb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/ipxe/efi') diff --git a/src/include/ipxe/efi/efi_usb.h b/src/include/ipxe/efi/efi_usb.h index 05b4fad00..41d9cc665 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; }; -- cgit v1.2.3-55-g7522