]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: Verify validity of pin offsets from device trees
authorSamuel Holland <samuel@sholland.org>
Sat, 11 Sep 2021 22:05:52 +0000 (17:05 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 5 Oct 2021 12:50:15 +0000 (08:50 -0400)
commitceec01eb39706059ca6f2d8807a68d6d1cbad0c7
tree2448cfd8c333c96611d78c5952036dbc3c5d83bc
parent5f22adfaa0ce0430f91a8a6be5891b9d9a988302
gpio: Verify validity of pin offsets from device trees

Translation of an OF GPIO specifier should fail if the pin offset is
larger than the number of pins in the GPIO bank.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c