From: Heinrich Schuchardt Date: Sat, 23 Jan 2021 05:57:33 +0100 Subject: [BUG] incorrect value of last block in block device protocol for partitions Message-ID: <7276d0bd-4fe1-e5e9-c4cc-368414156a6d@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The value for Media.LastBlock of the block IO protocol for partitions is incorrect for all partitions that do not end on the last block of the device. lib/efi_loader/efi_disk.c(448) efi_disk_add_dev(): diskobj->media.last_block = desc->lba - offset; desc->lba is the end of the disk not of the partition. Reported-by: Alexander von Gluck IV Best regards Heinrich