summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-10-25 20:11:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-10-25 20:11:33 -0400
commit1c4e395cf7ded47f33084865cbe2357cdbe4fd07 (patch)
tree82c30f148a3fea9718d72fdfddab54edb9e9547f /drivers/scsi/hpsa.c
parentb4b61b224d12ef12ff21cc598acce0ee818903ab (diff)
parent1052b41b25cbadcb85ff04c3b46663e21168dd3e (diff)
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "Nine changes, eight to drivers (qla2xxx, hpsa, lpfc, alua, ch, 53c710[x2], target) and one core change that tries to close a race between sysfs delete and module removal" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: lpfc: remove left-over BUILD_NVME defines scsi: core: try to get module before removing device scsi: hpsa: add missing hunks in reset-patch scsi: target: core: Do not overwrite CDB byte 1 scsi: ch: Make it possible to open a ch device multiple times again scsi: fix kconfig dependency warning related to 53C700_LE_ON_BE scsi: sni_53c710: fix compilation error scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions scsi: qla2xxx: fix a potential NULL pointer dereference
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index ac39ed79ccaa..216e557f703e 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -5477,6 +5477,8 @@ static int hpsa_ciss_submit(struct ctlr_info *h,
5477 return SCSI_MLQUEUE_HOST_BUSY; 5477 return SCSI_MLQUEUE_HOST_BUSY;
5478 } 5478 }
5479 5479
5480 c->device = dev;
5481
5480 enqueue_cmd_and_start_io(h, c); 5482 enqueue_cmd_and_start_io(h, c);
5481 /* the cmd'll come back via intr handler in complete_scsi_command() */ 5483 /* the cmd'll come back via intr handler in complete_scsi_command() */
5482 return 0; 5484 return 0;
@@ -5548,6 +5550,7 @@ static int hpsa_ioaccel_submit(struct ctlr_info *h,
5548 hpsa_cmd_init(h, c->cmdindex, c); 5550 hpsa_cmd_init(h, c->cmdindex, c);
5549 c->cmd_type = CMD_SCSI; 5551 c->cmd_type = CMD_SCSI;
5550 c->scsi_cmd = cmd; 5552 c->scsi_cmd = cmd;
5553 c->device = dev;
5551 rc = hpsa_scsi_ioaccel_raid_map(h, c); 5554 rc = hpsa_scsi_ioaccel_raid_map(h, c);
5552 if (rc < 0) /* scsi_dma_map failed. */ 5555 if (rc < 0) /* scsi_dma_map failed. */
5553 rc = SCSI_MLQUEUE_HOST_BUSY; 5556 rc = SCSI_MLQUEUE_HOST_BUSY;
@@ -5555,6 +5558,7 @@ static int hpsa_ioaccel_submit(struct ctlr_info *h,
5555 hpsa_cmd_init(h, c->cmdindex, c); 5558 hpsa_cmd_init(h, c->cmdindex, c);
5556 c->cmd_type = CMD_SCSI; 5559 c->cmd_type = CMD_SCSI;
5557 c->scsi_cmd = cmd; 5560 c->scsi_cmd = cmd;
5561 c->device = dev;
5558 rc = hpsa_scsi_ioaccel_direct_map(h, c); 5562 rc = hpsa_scsi_ioaccel_direct_map(h, c);
5559 if (rc < 0) /* scsi_dma_map failed. */ 5563 if (rc < 0) /* scsi_dma_map failed. */
5560 rc = SCSI_MLQUEUE_HOST_BUSY; 5564 rc = SCSI_MLQUEUE_HOST_BUSY;