commit | 18ad1fae22501cdfb88a0c873077788621a7a453 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Wed Apr 19 12:10:13 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Apr 25 14:46:36 2023 -0400 |
tree | 4d78b142b4891a0dcca4c0c4be3682e95e990be1 | |
parent | a8e019fdabd63928af561e74575ee46c5a03cdb8 [diff] |
gpio-uclass: fix off-by-one in gpio_request_list_by_name_nodev() By the time we jump to the err label, count represents the number of gpios we've successfully requested. So by subtracting one, we fail to free the most recently requested. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>