]> Git Repo - u-boot.git/commit
efi_loader: correct EFI_BLOCK_IO_PROTOCOL.Media.LastBlock
authorHeinrich Schuchardt <[email protected]>
Sat, 23 Jan 2021 05:52:21 +0000 (06:52 +0100)
committerHeinrich Schuchardt <[email protected]>
Sat, 23 Jan 2021 06:56:54 +0000 (07:56 +0100)
commit8d0949b3ed6985377682d7ec260be07ef26ef6d4
tree8360f2c6102514b4896233f4623e57797e0db3b5
parent2cfb68fd83b9998efe30d181945f478e3c68c6b6
efi_loader: correct EFI_BLOCK_IO_PROTOCOL.Media.LastBlock

The field Media.LastBlock of the EFI_BLOCK_IO_PROTOCOL.Media was filled
incorrectly both for block devices as well as for partitions.

The field must be filled with the index of the last logical block (LBA):

* block devices: device size minus 1
* partitions: partition size minus 1

Reported-by: Alexander von Gluck IV <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
lib/efi_loader/efi_disk.c
This page took 0.032188 seconds and 4 git commands to generate.