summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/cannonlake/memmap.c')
-rw-r--r--src/soc/intel/cannonlake/memmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/memmap.c b/src/soc/intel/cannonlake/memmap.c
index 8f842c0c5c..29f25f2693 100644
--- a/src/soc/intel/cannonlake/memmap.c
+++ b/src/soc/intel/cannonlake/memmap.c
@@ -91,6 +91,8 @@ static uintptr_t calculate_dram_base(void)
size_t imr_size;
dev = dev_find_slot(0, PCI_DEVFN(SA_DEV_SLOT_IGD, 0));
+ if (!dev)
+ die("ERROR - device not found!");
/* Read TOLUD from Host Bridge offset */
dram_base = sa_get_tolud_base();