diff --git a/chipset_enable.c b/chipset_enable.c index 67ce7614a..6220416b4 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -920,6 +920,8 @@ static int enable_flash_silvermont(struct pci_dev *dev, const char *name) /* Handle GCS (in RCRB) */ void *rcrb = physmap("BYT RCRB", rcba, 4); + if (rcrb == ERROR_PTR) + return ERROR_FATAL; enable_flash_ich_report_gcs(dev, ich_generation, rcrb); physunmap(rcrb, 4);