diff --git a/chipset_enable.c b/chipset_enable.c index 6f75d6608..33abe0789 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -916,6 +916,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);