From 14a8b4bfef5ceb2e410a8db3583161a17dd0877c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 22 Feb 2011 17:11:37 +0000 Subject: [PATCH] [efi] Provide space for storing the EFI driver name Commit d7736fb ("[efi] Allow EFI to control PCI bus enumeration") introduced a bug in which the EFI driver name became an (uninitialised) pointer rather than an array. Signed-off-by: Michael Brown --- src/include/ipxe/efi/efi_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/ipxe/efi/efi_driver.h b/src/include/ipxe/efi/efi_driver.h index 06331647..e5872ced 100644 --- a/src/include/ipxe/efi/efi_driver.h +++ b/src/include/ipxe/efi/efi_driver.h @@ -18,7 +18,7 @@ struct efi_driver { /** Name */ const char *name; /** EFI name */ - CHAR16 *wname; + CHAR16 wname[32]; /** EFI driver binding protocol */ EFI_DRIVER_BINDING_PROTOCOL driver; /** EFI component name protocol */