]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: clear garbage after CDBs on SG_IO
authorTejun Heo <htejun@gmail.com>
Sun, 17 Dec 2006 20:32:00 +0000 (21:32 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 17 Dec 2006 20:32:00 +0000 (21:32 +0100)
commit961428b9aed2ee9cf631d16f1620640cd54a4557
treec0e072a268b68e7fad28a2a561e8f915fd15c9ff
parentdcc6e343ff0463b005ca0488be90b8d0025de3e4
scsi: clear garbage after CDBs on SG_IO

ATAPI devices transfer fixed number of bytes for CDBs (12 or 16).  Some
ATAPI devices choke when shorter CDB is used and the left bytes contain
garbage.  Block SG_IO cleared left bytes but SCSI SG_IO didn't.  This patch
makes SCSI SG_IO clear it and simplify CDB clearing in block SG_IO.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
block/scsi_ioctl.c
drivers/scsi/scsi_lib.c