Skip to content

Commit 9fcddaf

Browse files
George Acostaherbertx
authored andcommitted
crypto: cavium/nitrox - add an error message to explain the failure of pci_request_mem_regions
Provide an error message for users when pci_request_mem_regions failed. Signed-off-by: George Acosta <acostag.ubuntu@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ea066b7 commit 9fcddaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/crypto/cavium/nitrox/nitrox_main.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ static int nitrox_probe(struct pci_dev *pdev,
451451
err = pci_request_mem_regions(pdev, nitrox_driver_name);
452452
if (err) {
453453
pci_disable_device(pdev);
454+
dev_err(&pdev->dev, "Failed to request mem regions!\n");
454455
return err;
455456
}
456457
pci_set_master(pdev);

0 commit comments

Comments
 (0)