Fix off by one error in scsi-disk get-capacity

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2013-06-27 17:00:46 +10:00
parent e3d494b2ed
commit a498136b51
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ CREATE cdb 10 allot
cdb scsi-param-size 1 retry-scsi-command
\ Success ?
dup 0<> IF " read-capacity" dump-scsi-error 0 0 EXIT THEN
drop scratch scsi-get-capacity-10
drop scratch scsi-get-capacity-10 1 +
;
100 CONSTANT test-unit-retries