]> Pileus Git - ~andy/linux/commitdiff
[SCSI] qla2xxx: Use passed in host to initialize local scsi_qla_host in queuecommand...
authorMadhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Tue, 10 May 2011 18:30:08 +0000 (11:30 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 17 May 2011 07:31:57 +0000 (11:31 +0400)
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_os.c

index 010f560ab99dd5ed085cbb284358a61395579942..8401a6f9bc714ff3b91cfaecd84d698e8879dd4b 100644 (file)
@@ -536,7 +536,7 @@ qla2x00_get_new_sp(scsi_qla_host_t *vha, fc_port_t *fcport,
 static int
 qla2xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
 {
-       scsi_qla_host_t *vha = shost_priv(cmd->device->host);
+       scsi_qla_host_t *vha = shost_priv(host);
        fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
        struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device));
        struct qla_hw_data *ha = vha->hw;