From: Tom Rini Date: Fri, 5 Aug 2016 21:00:11 -0400 Subject: [U-Boot] [U-Boot, v2] cmd: gpt: fix the wrong size parse for the last partition In-Reply-To: <1469761938-1728-1-git-send-email-kever.yang@rock-chips.com> References: <1469761938-1728-1-git-send-email-kever.yang@rock-chips.com> Message-ID: <20160806010011.GO9942@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: