summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot
diff options
context:
space:
mode:
authorMartin Roth <martin@se-eng.com>2012-12-14 19:17:55 -0700
committerPeter Stuge <peter@stuge.se>2012-12-15 03:49:08 +0100
commitc5f4926cb92c3030e67202faa828c9539e20a01f (patch)
treee6123bb8482dacd2096be794da15fe0a2a67274d /src/arch/x86/boot
parent9f0431726353a5eaa259776ab43e57163b74605e (diff)
Fix a compare against undefined variable in acpi.c
Initialize the pointer fadt to NULL to prevent a later comparison (if (fadt == NULL)) when the pointer had the *possibility* of never having been initialized. Change-Id: Ib2a544c190b609ab8c23147dc69dca5f4ac7f38c Signed-off-by: Martin Roth <martin@se-eng.com> Reviewed-on: http://review.coreboot.org/2037 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch/x86/boot')
-rw-r--r--src/arch/x86/boot/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/boot/acpi.c b/src/arch/x86/boot/acpi.c
index fd6a1baf88..1d7dbf85fa 100644
--- a/src/arch/x86/boot/acpi.c
+++ b/src/arch/x86/boot/acpi.c
@@ -687,7 +687,7 @@ void *acpi_find_wakeup_vector(void)
char *p, *end;
acpi_rsdt_t *rsdt;
acpi_facs_t *facs;
- acpi_fadt_t *fadt;
+ acpi_fadt_t *fadt = NULL;
void *wake_vec;
int i;