Skip to content
Commit 8d0949b3 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

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: default avatarAlexander von Gluck IV <kallisti5@unixzen.com>
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 2cfb68fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment