aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorMadhuranath Iyengar <Madhu.Iyengar@qlogic.com>2011-05-10 11:30:08 -0700
committerJames Bottomley <jbottomley@parallels.com>2011-05-17 11:31:57 +0400
commit134ae078504293cadeecc8550c4def876a42b07b (patch)
treeae3bfcac1b584f1a1e47859a51fd030e3d9a3a7a /drivers/scsi/qla2xxx
parent93d29cc63f1832dbbbab721cce1b9f845becf4d7 (diff)
downloadkernel_goldelico_gta04-134ae078504293cadeecc8550c4def876a42b07b.zip
kernel_goldelico_gta04-134ae078504293cadeecc8550c4def876a42b07b.tar.gz
kernel_goldelico_gta04-134ae078504293cadeecc8550c4def876a42b07b.tar.bz2
[SCSI] qla2xxx: Use passed in host to initialize local scsi_qla_host in queuecommand function
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>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 010f560..8401a6f 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -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;