[PATCH v2 2/3] part: Fix bogus return from part_get_info_by_dev_and_name

Tom Rini trini at konsulko.com
Fri Apr 23 18:24:35 CEST 2021


On Mon, Apr 12, 2021 at 06:53:06PM -0400, Sean Anderson wrote:

> 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 at seco.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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/20210423/adb296da/attachment.sig>


More information about the U-Boot mailing list