summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hp.com>2015-01-23 23:42:27 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 18:57:38 +0100
commitcd3c81c4a746ffca4e5a863ce05a1e0aa6766356 (patch)
tree00ab2888bd5b257ef547b8b52eea334b171206c4 /drivers/scsi/hpsa.c
parenthpsa: trivial message and comment clean ups (diff)
downloadlinux-cd3c81c4a746ffca4e5a863ce05a1e0aa6766356.tar.xz
linux-cd3c81c4a746ffca4e5a863ce05a1e0aa6766356.zip
hpsa: report failure to ioremap config table
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>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c4
1 files changed, 3 insertions, 1 deletions
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;