diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 725d5b28398c2619f73c3c8e5476f037347cd707..7f7652176fc5f1a36ff43e9e94e158548b32fe5d 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c @@ -44,6 +44,9 @@ void pci_update_resource(struct pci_dev *dev, int resno) if (!res->flags) return; + if (res->flags & IORESOURCE_UNSET) + return; + /* * Ignore non-moveable resources. This might be legacy resources for * which no functional BAR register exists or another important