Re: [PATCH 1/3] gpio: Verify validity of pin offsets when looking up names

2021-10-05 Thread Tom Rini
On Sat, Sep 11, 2021 at 05:05:51PM -0500, Samuel Holland wrote: > 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/3] gpio: Verify validity of pin offsets when looking up names

2021-09-29 Thread Simon Glass
On Sat, 11 Sept 2021 at 16:05, Samuel Holland wrote: > > 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 > --- > > drivers/gpio/gpio-uclass.c | 3 ++- > 1 file changed, 2 insertions(+),

[PATCH 1/3] gpio: Verify validity of pin offsets when looking up names

2021-09-11 Thread Samuel Holland
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 --- drivers/gpio/gpio-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio