]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] isci: fix breakage caused by >16byte CDB patch
authorJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Jul 2013 19:43:18 +0000 (12:43 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Jul 2013 21:18:12 +0000 (14:18 -0700)
commitbe27e3e9401e931f2254afce0145d46a1d604f1a
treed17034c79f22fbd304ab95146e8f9de22ad30f96
parent9dbf43be62c402cd45f01392134bfcfa9a44551b
[SCSI] isci: fix breakage caused by >16byte CDB patch

Oops, apparently no-one I cc'd at intel actually bothered to check this
patch for the isci driver:

commit 4c6b4dfd3553ce46f534a7fdfbc20adfef1f583c
Author: James Bottomley <JBottomley@Parallels.com>
Date:   Tue May 7 15:38:18 2013 -0700

    [SCSI] libsas: implement > 16 byte CDB support

sci_swab32_cpy needs multiples of four, so for commands that aren't that, it's
rounding the wrong way.  fix by doing (len+3)/4 instead of len/4.

Reported-by: Tony Luck <tony.luck@intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/isci/request.c