]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_debug: write_same: fix error report
authorDouglas Gilbert <dgilbert@interlog.com>
Sun, 29 Oct 2017 14:47:19 +0000 (10:47 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Oct 2017 16:28:05 +0000 (12:28 -0400)
commita5a855d622bac382be80900495cc83872476d29d
tree6ddb2bb93430764bdbd0b406fdb385f6b154b3ee
parentc02724465d06f8524bb5b44a214b1046563f6b6c
scsi: scsi_debug: write_same: fix error report

The scsi_debug driver incorrectly suggests there is an error with the
SCSI WRITE SAME command when the number_of_logical_blocks is greater
than 1. It will also suggest there is an error when NDOB
(no data-out buffer) is set and the number_of_logical_blocks is
greater than 0. Both are valid, fix.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c