From: Kever Yang Date: Mon, 2 Sep 2019 16:01:30 +0800 Subject: [U-Boot] [PATCH] avb: verify: return fail if there is no uuid in partition info Message-ID: <20190902080130.27401-1-kever.yang@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de There is not always have uuid in disk_partition_t, we can only get from partitions info when PARTITION_UUIDS is available. Signed-off-by: Kever Yang --- common/avb_verify.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/avb_verify.c b/common/avb_verify.c index 36898a610f..314c5f7a3e 100644 --- a/common/avb_verify.c +++ b/common/avb_verify.c @@ -803,6 +803,7 @@ static AvbIOResult get_unique_guid_for_partition(AvbOps *ops, char *guid_buf, size_t guid_buf_size) { +#if CONFIG_IS_ENABLED(PARTITION_UUIDS) struct mmc_part *part; size_t uuid_size; @@ -818,6 +819,9 @@ static AvbIOResult get_unique_guid_for_partition(AvbOps *ops, guid_buf[uuid_size - 1] = 0; return AVB_IO_RESULT_OK; +#else + return AVB_IO_RESULT_ERROR_IO; +#endif } /** -- 2.17.1