From: Robert Elliott Date: Fri, 23 Jan 2015 22:42:27 +0000 (-0600) Subject: hpsa: report failure to ioremap config table X-Git-Tag: v4.0-rc1~126^2~40 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd3c81c4a746ffca4e5a863ce05a1e0aa6766356;p=karo-tx-linux.git hpsa: report failure to ioremap config table Enhance error reporting. Reviewed-by: Scott Teel Signed-off-by: Robert Elliott Signed-off-by: Don Brace Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 59730186ad2c..354e7f8831a4 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -6130,8 +6130,10 @@ static int hpsa_find_cfgtables(struct ctlr_info *h) return rc; h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); - if (!h->cfgtable) + if (!h->cfgtable) { + dev_err(&h->pdev->dev, "Failed mapping cfgtable\n"); return -ENOMEM; + } rc = write_driver_ver_to_cfgtable(h->cfgtable); if (rc) return rc;