mirror of https://github.com/torvalds/linux.git
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:
parent
6813fc8d0d
commit
93bb9e5c02
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue