lib: avb: modify load boot partition size

Load the boot image real size other than the
boot partition size. If not, the uboot can not
malloc a big buffer for the all boot partition.

Change-Id: Ifc8d7cc1f214b94f6018c68cb03e8e9ce89781de
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2017-11-15 16:19:51 +08:00 committed by Kever Yang
parent d7c30fe9d6
commit e291f58fb4
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ static AvbSlotVerifyResult load_and_verify_hash_partition(
* since it's such a common workflow.
*/
image_size = hash_desc.image_size;
if (allow_verification_error) {
if (0) {
if (ops->get_size_of_partition == NULL) {
avb_errorv(part_name,
": The get_size_of_partition() operation is "