[PATCH v2] drivers: scsi: fix double decrement of block count in 64-bit LBA path
Tom Rini
trini at konsulko.com
Mon Dec 22 23:26:22 CET 2025
On Mon, 22 Dec 2025 14:31:05 +0530, Balaji Selvanathan wrote:
> The scsi_read function incorrectly decrements the block count twice
> when handling large disks that trigger the CONFIG_SYS_64BIT_LBA code
> path (reads beyond block 268,435,455). The variable 'blks' was being
> decremented both inside the 64-bit LBA block and after the successful
> scsi_exec() call, causing incorrect block count tracking and data
> abort errors on large capacity disks.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] drivers: scsi: fix double decrement of block count in 64-bit LBA path
commit: c0add0039825fbd40620284c202f7c4569154605
--
Tom
More information about the U-Boot
mailing list