diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3815,7 +3815,9 @@ static int nvme_dev_map(struct nvme_dev *dev) { struct pci_dev *pdev = to_pci_dev(dev->dev); - if (pci_request_mem_regions(pdev, "nvme")) + if (pci_request_selected_regions_exclusive( + pdev, pci_select_bars(pdev, IORESOURCE_MEM), + "nvme")) return -ENODEV; if (nvme_remap_bar(dev, NVME_REG_DBS + 4096))