]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_debug: fix write_same with virtual_gb problem
authorDouglas Gilbert <dgilbert@interlog.com>
Fri, 25 Jan 2019 17:46:09 +0000 (12:46 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:24:31 +0000 (01:24 -0500)
commit0b3763592d1dfbaf2ab851b005a66550f79f7b4c
tree34060aee3222c5cefa4a8cbd383d0c4262e637f2
parent1769ca6aba9319917e3409c449d9639054acdb53
scsi: scsi_debug: fix write_same with virtual_gb problem

The WRITE SAME(10) and (16) implementations didn't take account of the
buffer wrap required when the virtual_gb parameter is greater than 0.

Fix that and rename the fake_store() function to lba2fake_store() to lessen
confusion with the global fake_storep pointer. Bump version date.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reported-by: Bart Van Assche <bvanassche@acm.org>
Tested by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c