aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/hpsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 9a6e4a2cd072..68254817c3be 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -2836,6 +2836,8 @@ static int hpsa_get_pdisk_of_ioaccel2(struct ctlr_info *h,
2836 2836
2837 /* Get the list of physical devices */ 2837 /* Get the list of physical devices */
2838 physicals = kzalloc(reportsize, GFP_KERNEL); 2838 physicals = kzalloc(reportsize, GFP_KERNEL);
2839 if (physicals == NULL)
2840 return 0;
2839 if (hpsa_scsi_do_report_phys_luns(h, (struct ReportLUNdata *) physicals, 2841 if (hpsa_scsi_do_report_phys_luns(h, (struct ReportLUNdata *) physicals,
2840 reportsize, extended)) { 2842 reportsize, extended)) {
2841 dev_err(&h->pdev->dev, 2843 dev_err(&h->pdev->dev,