misc: cardreader: Return -EBUSY if regions are busy

cardreader returns -ENOMEM if a PCI region is currently in use
("requested") by another driver. The proper return code for this is
-EBUSY.

Replace -ENOMEM with -EBUSY.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250417091532.26520-3-phasta@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Philipp Stanner 2025-04-17 11:15:33 +02:00 committed by Greg Kroah-Hartman
parent 6813fc8d0d
commit 93bb9e5c02
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ static int alcor_pci_probe(struct pci_dev *pdev,
ret = pcim_request_all_regions(pdev, DRV_NAME_ALCOR_PCI); ret = pcim_request_all_regions(pdev, DRV_NAME_ALCOR_PCI);
if (ret) { if (ret) {
dev_err(&pdev->dev, "Cannot request region\n"); dev_err(&pdev->dev, "Cannot request region\n");
ret = -ENOMEM; ret = -EBUSY;
goto error_free_ida; goto error_free_ida;
} }