]> Git Repo - u-boot.git/commit
gpio: Verify validity of pin offsets when looking up names
authorSamuel Holland <[email protected]>
Sat, 11 Sep 2021 22:05:51 +0000 (17:05 -0500)
committerTom Rini <[email protected]>
Tue, 5 Oct 2021 12:50:15 +0000 (08:50 -0400)
commit390ccffe07c45a3ad584ee6199cc1e63d07981ee
tree9d9e5ffbda7d377e6ee1d9a8d3a5c75fe2490b78
parentc5b68ef8af3c2f515c1f5b8d63a69359a85d753b
gpio: Verify validity of pin offsets when looking up names

Translation of a pin name to a device+offset should fail if the offset
is larger than the number of pins in the GPIO bank.

Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/gpio/gpio-uclass.c
This page took 0.028934 seconds and 4 git commands to generate.