mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
drivers/block/cciss.c:cciss_init_one(): use proper errnos
pci_driver.probe should return a meaningful errno, not -1. Cc: Jens Axboe <axboe@kernel.dk> Cc: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
3f7d758b1e
commit
4336548af4
@ -5004,7 +5004,7 @@ reinit_after_soft_reset:
|
|||||||
|
|
||||||
i = alloc_cciss_hba(pdev);
|
i = alloc_cciss_hba(pdev);
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
return -1;
|
return -ENOMEM;
|
||||||
|
|
||||||
h = hba[i];
|
h = hba[i];
|
||||||
h->pdev = pdev;
|
h->pdev = pdev;
|
||||||
@ -5205,7 +5205,7 @@ clean_no_release_regions:
|
|||||||
*/
|
*/
|
||||||
pci_set_drvdata(pdev, NULL);
|
pci_set_drvdata(pdev, NULL);
|
||||||
free_hba(h);
|
free_hba(h);
|
||||||
return -1;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cciss_shutdown(struct pci_dev *pdev)
|
static void cciss_shutdown(struct pci_dev *pdev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user