]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: scsi_debug: Avoid PI being disabled when TPGS is enabled v4.1.12-108.0.20170806_1300
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 May 2017 16:39:36 +0000 (12:39 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 6 Aug 2017 18:29:28 +0000 (11:29 -0700)
commitfaafb6374ac379e314111b7ba86c10e2332bdb7e
tree87165fa00526c39053292b305d519aee4094a7d0
parent4af8063a9e35658e387603b20745324fdfb50df4
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.

Orabug: 25704090

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>
(cherry picked from commit 70bdf2026d905b8bfa0a455d35018df3e9777a6c)
Signed-off-by: Ritika Srivastava <ritika.srivastava@oracle.com>
Reviewed-by: John Sobecki <john.sobecki@oracle.com>
Conflicts:
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c