[U-Boot] [U-Boot, v2] cmd: gpt: fix the wrong size parse for the last partition

Tom Rini trini at konsulko.com
Sat Aug 6 03:00:11 CEST 2016


On Fri, Jul 29, 2016 at 11:12:18AM +0800, Kever Yang wrote:

> The calculation of "dev_desc->lba - 34  - 1 - offset" is not correct for
> size '-', because both fist_usable_lba and last_usable_lba will remain
> 34 sectors.
> 
> We can simply use 0 for size '-' because the part_efi module will decode
> the size and auto extend the size to maximum available size.
> 
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160805/bf7d5de4/attachment.sig>


More information about the U-Boot mailing list