aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/hpsa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index b91ccd436acb..42295c49682f 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -838,7 +838,11 @@ static void adjust_hpsa_scsi_table(struct ctlr_info *h, int hostno,
838 (void) hpsa_scsi_add_entry(h, hostno, sd[entry], 838 (void) hpsa_scsi_add_entry(h, hostno, sd[entry],
839 added, &nadded); 839 added, &nadded);
840 /* add can't fail, we just removed one. */ 840 /* add can't fail, we just removed one. */
841 sd[entry] = NULL; /* prevent it from being freed */ 841
842 /* Set it to NULL to prevent it from being freed
843 * at the bottom of hpsa_update_scsi_devices()
844 */
845 sd[entry] = NULL;
842 } 846 }
843 i++; 847 i++;
844 } 848 }