commit | f1d070dd5d4a5a73cfaf77aef7fa695d7612f0bc | [log] [tgz] |
---|---|---|
author | Kever Yang <kever.yang@rock-chips.com> | Fri Jul 29 11:12:18 2016 +0800 |
committer | Tom Rini <trini@konsulko.com> | Fri Aug 05 20:55:16 2016 -0400 |
tree | 596fddf6ec6cc840d5d092651068c29866aa00a2 | |
parent | df407782cdfa33882b42a01e2a079877f97cd7c2 [diff] |
cmd: gpt: fix the wrong size parse for the last partition 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@rock-chips.com>