]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:30 +0000 (10:07 +0100)
commit026ffaf65879b3ecc12ffa9c45dfa5894370bd60
treeb513ca900caf114c06749b6e60e805cf35d9e80e
parentd8914530f247900885850af7cccf81a2b33907b9
scsi: scsi_debug: write_same: fix error report

[ Upstream commit e33d7c56450b0a5c7290cbf9e1581fab5174f552 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_debug.c