]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Provide space for storing the EFI driver name
authorMichael Brown <mcb30@ipxe.org>
Tue, 22 Feb 2011 17:11:37 +0000 (17:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Feb 2011 17:12:18 +0000 (17:12 +0000)
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 <mcb30@ipxe.org>
src/include/ipxe/efi/efi_driver.h

index 063316472558968010aaec2c10696531ddd4a417..e5872ced3da0c77825d8441ffe372744b410044c 100644 (file)
@@ -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 */