]> git.dujemihanovic.xyz Git - u-boot.git/commit
part: Fix bogus return from part_get_info_by_dev_and_name
authorSean Anderson <sean.anderson@seco.com>
Mon, 12 Apr 2021 22:53:06 +0000 (18:53 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 22 Apr 2021 18:09:45 +0000 (14:09 -0400)
commitfe5a50910a64d8773fcd1454631d28da72319f28
tree4dce2780a6091a0914d5262ca1ef0c277846c6f8
parent7194527b6a456abaa24198dc4b6c289905c4cffd
part: Fix bogus return from part_get_info_by_dev_and_name

blk_get_device_by_str returns the device number on success. So we must
check if the return was negative to determine an error.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c