diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/scsi/vmw_pvscsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c index ecee4b3ff073..377b07b2feeb 100644 --- a/drivers/scsi/vmw_pvscsi.c +++ b/drivers/scsi/vmw_pvscsi.c | |||
| @@ -763,6 +763,7 @@ static int pvscsi_queue_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd | |||
| 763 | struct pvscsi_adapter *adapter = shost_priv(host); | 763 | struct pvscsi_adapter *adapter = shost_priv(host); |
| 764 | struct pvscsi_ctx *ctx; | 764 | struct pvscsi_ctx *ctx; |
| 765 | unsigned long flags; | 765 | unsigned long flags; |
| 766 | unsigned char op; | ||
| 766 | 767 | ||
| 767 | spin_lock_irqsave(&adapter->hw_lock, flags); | 768 | spin_lock_irqsave(&adapter->hw_lock, flags); |
| 768 | 769 | ||
| @@ -775,13 +776,14 @@ static int pvscsi_queue_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd | |||
| 775 | } | 776 | } |
| 776 | 777 | ||
| 777 | cmd->scsi_done = done; | 778 | cmd->scsi_done = done; |
| 779 | op = cmd->cmnd[0]; | ||
| 778 | 780 | ||
| 779 | dev_dbg(&cmd->device->sdev_gendev, | 781 | dev_dbg(&cmd->device->sdev_gendev, |
| 780 | "queued cmd %p, ctx %p, op=%x\n", cmd, ctx, cmd->cmnd[0]); | 782 | "queued cmd %p, ctx %p, op=%x\n", cmd, ctx, op); |
| 781 | 783 | ||
| 782 | spin_unlock_irqrestore(&adapter->hw_lock, flags); | 784 | spin_unlock_irqrestore(&adapter->hw_lock, flags); |
| 783 | 785 | ||
| 784 | pvscsi_kick_io(adapter, cmd->cmnd[0]); | 786 | pvscsi_kick_io(adapter, op); |
| 785 | 787 | ||
| 786 | return 0; | 788 | return 0; |
| 787 | } | 789 | } |
