scsi: don't add scsi command result bytes
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 25 Jun 2018 11:20:59 +0000 (13:20 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:27:07 +0000 (12:27 -0400)
commit6bec4c3842cd7338973839683bbf96273c3b85f7
treeba97de671cbfeb8c47d7eb3338a2b2be34cec94f
parentc65be1a63f1df224c8f22d72b9ec824241ada585
scsi: don't add scsi command result bytes

Some drivers are ADDing the scsi command's result bytes instead of ORing
them.

While this can produce correct results it has unexpected side effects.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/imm.c
drivers/scsi/mesh.c
drivers/scsi/sym53c8xx_2/sym_glue.c
drivers/scsi/sym53c8xx_2/sym_glue.h