hpsa: correct transfer length for 6 byte read/write commands
authorDon Brace <don.brace@pmcs.com>
Wed, 4 Nov 2015 21:50:50 +0000 (15:50 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 9 Nov 2015 17:34:19 +0000 (12:34 -0500)
commitc8a6c9a6b41367d147990756b311ed5a67f19005
tree092346d12b5cafa2a9a9b94e35d920df938cae24
parent683fc444697a388f17cbc3bd7e64191ce000b6b4
hpsa: correct transfer length for 6 byte read/write commands

handle block counts of 0. Cleanup block and block count calculations.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Justin Lindley <justin.lindley@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c