mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
nvme-pci: print error message on failure in nvme_probe
Add a new error message that makes failures to probe visible in the kernel log, like: nvme 0008:00:00.0: error -ENODEV: probe failed This highlights issues with a particular device right away instead of leaving users to search for missing drives. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com> Signed-off-by: Gerd Bayer <gbayer@linux.ibm.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
3c1fb0ce60
commit
c9adfb5b68
|
|
@ -3602,6 +3602,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
nvme_uninit_ctrl(&dev->ctrl);
|
||||
out_put_ctrl:
|
||||
nvme_put_ctrl(&dev->ctrl);
|
||||
dev_err_probe(&pdev->dev, result, "probe failed\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user