summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/efi_driver.h
diff options
context:
space:
mode:
authorMichael Brown2011-02-22 18:11:37 +0100
committerMichael Brown2011-02-22 18:12:18 +0100
commit14a8b4bfef5ceb2e410a8db3583161a17dd0877c (patch)
treea492d8fa918db2ecf0ecf6ec6d91a5ee9511fa03 /src/include/ipxe/efi/efi_driver.h
parent[efi] Allow EFI to control PCI bus enumeration (diff)
downloadipxe-14a8b4bfef5ceb2e410a8db3583161a17dd0877c.tar.gz
ipxe-14a8b4bfef5ceb2e410a8db3583161a17dd0877c.tar.xz
ipxe-14a8b4bfef5ceb2e410a8db3583161a17dd0877c.zip
[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>
Diffstat (limited to 'src/include/ipxe/efi/efi_driver.h')
-rw-r--r--src/include/ipxe/efi/efi_driver.h2
1 files changed, 1 insertions, 1 deletions
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 */