* [PATCH] avb: Fix error when partition not found
@ 2021-02-25 16:19 schspa
2021-02-26 8:49 ` Igor Opaniuk
2021-03-18 16:56 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: schspa @ 2021-02-25 16:19 UTC (permalink / raw)
To: u-boot
part_get_info_by_name will return -1 on error, and >0 on success.
Signed-off-by: schspa <schspa@gmail.com>
Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
---
common/avb_verify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/avb_verify.c b/common/avb_verify.c
index db10d0f21f..0520a71455 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -369,7 +369,7 @@ static struct mmc_part *get_partition(AvbOps *ops, const char *partition)
}
ret = part_get_info_by_name(mmc_blk, partition, &part->info);
- if (!ret) {
+ if (ret < 0) {
printf("Can't find partition '%s'\n", partition);
goto err;
}
--
2.24.3 (Apple Git-128)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] avb: Fix error when partition not found
2021-02-25 16:19 [PATCH] avb: Fix error when partition not found schspa
@ 2021-02-26 8:49 ` Igor Opaniuk
2021-03-18 16:56 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Igor Opaniuk @ 2021-02-26 8:49 UTC (permalink / raw)
To: u-boot
Hi schspa,
On Thu, Feb 25, 2021 at 6:25 PM schspa <schspa@gmail.com> wrote:
>
> part_get_info_by_name will return -1 on error, and >0 on success.
>
> Signed-off-by: schspa <schspa@gmail.com>
> Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
> ---
> common/avb_verify.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/avb_verify.c b/common/avb_verify.c
> index db10d0f21f..0520a71455 100644
> --- a/common/avb_verify.c
> +++ b/common/avb_verify.c
> @@ -369,7 +369,7 @@ static struct mmc_part *get_partition(AvbOps *ops, const char *partition)
> }
>
> ret = part_get_info_by_name(mmc_blk, partition, &part->info);
> - if (!ret) {
> + if (ret < 0) {
> printf("Can't find partition '%s'\n", partition);
> goto err;
> }
> --
> 2.24.3 (Apple Git-128)
>
Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
--
Best regards - Freundliche Gr?sse - Meilleures salutations
Igor Opaniuk
Embedded Software Engineer
T: +380 938364067
E: igor.opaniuk at foundries.io
W: www.foundries.io
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] avb: Fix error when partition not found
2021-02-25 16:19 [PATCH] avb: Fix error when partition not found schspa
2021-02-26 8:49 ` Igor Opaniuk
@ 2021-03-18 16:56 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-03-18 16:56 UTC (permalink / raw)
To: u-boot
On Fri, Feb 26, 2021 at 12:19:10AM +0800, schspa wrote:
> part_get_info_by_name will return -1 on error, and >0 on success.
>
> Signed-off-by: schspa <schspa@gmail.com>
> Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210318/1ef229bc/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-18 16:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 16:19 [PATCH] avb: Fix error when partition not found schspa
2021-02-26 8:49 ` Igor Opaniuk
2021-03-18 16:56 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.