scsi: Fix wrong additional sense length in descriptor format
authorSagi Grimberg <[email protected]>
Wed, 15 Jul 2015 07:55:36 +0000 (10:55 +0300)
committerNicholas Bellinger <[email protected]>
Fri, 24 Jul 2015 05:48:49 +0000 (22:48 -0700)
commit12306b425d0dbab7b60f54e02d67cf3dfae494d1
tree112015efc7d82333d5eb90e6f162cdbf9af87523
parent3e963b2d3c93e0546e911d681f37d35f0f79b54f
scsi: Fix wrong additional sense length in descriptor format

The sense header additional sense length should be the accumulated
size of all the descriptors. Information descriptor size is 12 bytes.
When setting the additional sense length we should add 0xc instead of
0xa.

Signed-off-by: Sagi Grimberg <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/scsi/scsi_common.c