[libata scsi] fix read/write translation edge cases
authorJeff Garzik <jgarzik@pobox.com>
Sat, 27 Aug 2005 08:20:12 +0000 (04:20 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 27 Aug 2005 08:20:12 +0000 (04:20 -0400)
commit135932651fd1eeb95eb6c5d4f6652aae73fe2c24
tree3a440b2a471ef4ab57b8aa75c3b068b2b52910ed
parentd18d36b4edbb980c9de7fe00724c3ded5de1b7a7
[libata scsi] fix read/write translation edge cases

Fix bugs for unlikely edge cases noticed by Douglas Gilbert:

- When READ(6)/WRITE(6) sector count == 0, treat it as 256 sectors

- For other READ(x)/WRITE(x), when sector count == 0, error.
  We don't support successfully completing zero-length transfers at
  this time.
drivers/scsi/libata-scsi.c