From: Michael Brown Date: Tue, 22 Feb 2011 17:11:37 +0000 (+0000) Subject: [efi] Provide space for storing the EFI driver name X-Git-Tag: v1.20.1~2306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14a8b4bfef5ceb2e410a8db3583161a17dd0877c;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/include/ipxe/efi/efi_driver.h b/src/include/ipxe/efi/efi_driver.h index 063316472..e5872ced3 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 */