[PATCH] gpio-uclass: fix off-by-one in gpio_request_list_by_name_nodev()

Tom Rini trini at konsulko.com
Wed Apr 26 14:32:04 CEST 2023


On Wed, Apr 19, 2023 at 12:10:13PM +0200, Rasmus Villemoes wrote:

> By the time we jump to the err label, count represents the number of
> gpios we've succesfully requested. So by subtracting one, we fail to
> free the most recently requested.
> 
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> 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/20230426/bc02bb5a/attachment.sig>


More information about the U-Boot mailing list