projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpio-uclass: fix off-by-one in gpio_request_list_by_name_nodev()
[platform/kernel/u-boot.git]
/
drivers
/
gpio
/
gpio-uclass.c
diff --git
a/drivers/gpio/gpio-uclass.c
b/drivers/gpio/gpio-uclass.c
index
c8be5a4
..
712119c
100644
(file)
--- a/
drivers/gpio/gpio-uclass.c
+++ b/
drivers/gpio/gpio-uclass.c
@@
-1219,7
+1219,7
@@
int gpio_request_list_by_name_nodev(ofnode node, const char *list_name,
return count;
err:
- gpio_free_list_nodev(desc, count
- 1
);
+ gpio_free_list_nodev(desc, count);
return ret;
}