Browse Source

[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 <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
14a8b4bfef
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/ipxe/efi/efi_driver.h

+ 1
- 1
src/include/ipxe/efi/efi_driver.h View File

@@ -18,7 +18,7 @@ struct efi_driver {
18 18
 	/** Name */
19 19
 	const char *name;
20 20
 	/** EFI name */
21
-	CHAR16 *wname;
21
+	CHAR16 wname[32];
22 22
 	/** EFI driver binding protocol */
23 23
 	EFI_DRIVER_BINDING_PROTOCOL driver;
24 24
 	/** EFI component name protocol */

Loading…
Cancel
Save