summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
authorTimothy Thelin <Timothy.Thelin@wdc.com>2005-09-13 19:56:28 -0700
committerJames Bottomley <jejb@mulgrave.(none)>2005-09-14 16:54:12 -0400
commit186d330e682210100c671355580a8592e4a21692 (patch)
tree63c9956263463c950c2965a5e871508d41aa9de3 /drivers/scsi/sr.c
parenta89f29f6ea8dba0b7c4ae5d1d0b43de6cb500ea6 (diff)
downloadop-kernel-dev-186d330e682210100c671355580a8592e4a21692.zip
op-kernel-dev-186d330e682210100c671355580a8592e4a21692.tar.gz
[SCSI] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmd
This fixes an issue in scsi command initialization from a request where sd, sr, st, and scsi_lib all fail to copy the request's cmd_len to the scsi command's cmd_len field. Signed-off-by: Timothy Thelin <timothy.thelin@wdc.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index ce63fc8..561901b 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -326,6 +326,7 @@ static int sr_init_command(struct scsi_cmnd * SCpnt)
return 0;
memcpy(SCpnt->cmnd, rq->cmd, sizeof(SCpnt->cmnd));
+ SCpnt->cmd_len = rq->cmd_len;
if (!rq->data_len)
SCpnt->sc_data_direction = DMA_NONE;
else if (rq_data_dir(rq) == WRITE)
OpenPOWER on IntegriCloud