]> git.baikalelectronics.ru Git - kernel.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)
commit31b2ff4db3c86893de06461d5e09a04e1276ddd0
treeea63421086da6a9e73659b78ced5af1bc4746db1
parent047bc28ff9cdab08ffbe8c03661c2906eeace5c2
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