hpsa: fix 6-byte READ/WRITE with 0 length data xfer
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 3 Jul 2014 15:18:14 +0000 (10:18 -0500)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:16:59 +0000 (17:16 -0400)
commit3fa89a04e064e586df4ed3208a8e62012a65b17f
tree4786ffffea110d97e273c46680f85063cbf7accb
parent2a5ac32653786871f03a22ecd524617cf53e1b53
hpsa: fix 6-byte READ/WRITE with 0 length data xfer

a 6-byte READ/WRITE CDB with a 0 block data transfer really
means a 256 block data transfer.  The RAID mapping code failed
to handle this case.  For 10/12/16 byte READ/WRITEs, 0 just means
no data should be transferred, and should not trigger BUG_ON.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Reported-by: Robert Elliott <elliott@hp.com>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c
This page took 0.02844 seconds and 5 git commands to generate.