diff options
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index cffc7bb419de..c6c0434d8034 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -1329,7 +1329,7 @@ static void hpsa_scsi_do_simple_cmd_with_retry(struct ctlr_info *h, | |||
1329 | int retry_count = 0; | 1329 | int retry_count = 0; |
1330 | 1330 | ||
1331 | do { | 1331 | do { |
1332 | memset(c->err_info, 0, sizeof(c->err_info)); | 1332 | memset(c->err_info, 0, sizeof(*c->err_info)); |
1333 | hpsa_scsi_do_simple_cmd_core(h, c); | 1333 | hpsa_scsi_do_simple_cmd_core(h, c); |
1334 | retry_count++; | 1334 | retry_count++; |
1335 | } while (check_for_unit_attention(h, c) && retry_count <= 3); | 1335 | } while (check_for_unit_attention(h, c) && retry_count <= 3); |