aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/lynxpoint/fadt.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-23 00:11:26 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-24 20:45:49 +0000
commitcbcbb6767e24c2568bb6444df8dfafdeec019ef4 (patch)
treee84ff19a07dea2fc16c5802c5396427dd8e9031e /src/southbridge/intel/lynxpoint/fadt.c
parent84fa224b53b726bec2a75dfdedd234bf60b0246e (diff)
sb/intel/lynxpoint: Ensure that `dev->chip_info` is not null
Use either a regular null check or `config_of` to avoid bugs. Change-Id: I36a01b898c3e62423f27c2940b5f875b73e36950 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46665 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/fadt.c')
-rw-r--r--src/southbridge/intel/lynxpoint/fadt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/southbridge/intel/lynxpoint/fadt.c b/src/southbridge/intel/lynxpoint/fadt.c
index 9ae6d34d3c..dee0601571 100644
--- a/src/southbridge/intel/lynxpoint/fadt.c
+++ b/src/southbridge/intel/lynxpoint/fadt.c
@@ -61,7 +61,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_PLATFORM_CLOCK;
- if (cfg->docking_supported)
+ if (cfg && cfg->docking_supported)
fadt->flags |= ACPI_FADT_DOCKING_SUPPORTED;
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;