]> git.dujemihanovic.xyz Git - u-boot.git/commit
scsi: fix disk capacity too small by one sector
authorJulius Lehmann <lehmanju@devpi.de>
Sat, 26 Oct 2024 18:06:44 +0000 (20:06 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Nov 2024 19:34:32 +0000 (13:34 -0600)
commit5f7c06bdc3c6b20362992cd1b6d137f5bb599a0a
tree1c7c515fe21266fab4254759bd508e9ca5ee2283
parent99ce74a41baede05b20639f3839588b3a9678df8
scsi: fix disk capacity too small by one sector

SCSI READ CAPACITY reports the address of the last block and the block
size. The total number of blocks is thus last block address plus one.

This also fixes the corresponding test case.
drivers/scsi/scsi.c
test/boot/bootdev.c