]> git.neil.brown.name Git - history.git/commitdiff
Set command length for the START_STOP command.
authorLinus Torvalds <torvalds@home.transmeta.com>
Sat, 2 Nov 2002 05:58:10 +0000 (21:58 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 2 Nov 2002 05:58:10 +0000 (21:58 -0800)
drivers/block/scsi_ioctl.c

index 081682e37f05f75a4f682ab4be5b7697af8a1895..6ef92f8ea0f67fbb48eb293a1c63dbfae6124ab7 100644 (file)
@@ -464,6 +464,7 @@ int scsi_cmd_ioctl(struct block_device *bdev, unsigned int cmd, unsigned long ar
                        memset(rq->cmd, 0, sizeof(rq->cmd));
                        rq->cmd[0] = GPCMD_START_STOP_UNIT;
                        rq->cmd[4] = 0x02 + (close != 0);
+                       rq->cmd_len = 6;
                        err = blk_do_rq(q, bdev, rq);
                        blk_put_request(rq);
                        break;