Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cciss: fix flush cache transfer length

We weren't filling in the transfer length of the
flush cache command (it transfers 4 bytes of zeroes).
Firmware didn't seem to be bothered by this, but it
should be fixed.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Stephen M. Cameron and committed by
Jens Axboe
59bd71a8 6225da48

+2
+2
drivers/block/cciss.c
··· 2601 2601 c->Request.Timeout = 0; 2602 2602 c->Request.CDB[0] = BMIC_WRITE; 2603 2603 c->Request.CDB[6] = BMIC_CACHE_FLUSH; 2604 + c->Request.CDB[7] = (size >> 8) & 0xFF; 2605 + c->Request.CDB[8] = size & 0xFF; 2604 2606 break; 2605 2607 case TEST_UNIT_READY: 2606 2608 c->Request.CDBLen = 6;