]> 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)
commit85fdfdccb0c2dd5060ec863dfa6c79d33e6eb766
treeea63421086da6a9e73659b78ced5af1bc4746db1
parent2d5c49d6548ba60f61178bfeb105c9fd1af00aae
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