hpsa: report failure to ioremap config table
authorRobert Elliott <elliott@hp.com>
Fri, 23 Jan 2015 22:42:27 +0000 (16:42 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:38 +0000 (09:57 -0800)
Enhance error reporting.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c

index 5973018..354e7f8 100644 (file)
@@ -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;