]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: scsi_debug: Avoid PI being disabled when TPGS is enabled
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 May 2017 16:39:36 +0000 (12:39 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Jun 2017 02:58:25 +0000 (22:58 -0400)
commit70bdf2026d905b8bfa0a455d35018df3e9777a6c
treeea63421086da6a9e73659b78ced5af1bc4746db1
parent4cd3b6ebff8510b2139d64024411207090cfe0a9
scsi: scsi_debug: Avoid PI being disabled when TPGS is enabled

It was not possible to enable both T10 PI and TPGS because they share
the same byte in the INQUIRY response. Logically OR the TPGS value
instead of using assignment.

Reported-by: Ritika Srivastava <ritika.srivastava@oracle.com>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c