mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
avb: Fix error when partition not found
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>
This commit is contained in:
parent
29cbc4babf
commit
0453411998
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue