[PATCH 09/10] pinctrl: sunplus: Validate pin_func index in sppctl_dt_node_to_map()
Andrew Gaylard
ag at ffroot.co.za
Wed Nov 11 22:27:11 PST 2026
Lee Jones <lee at kernel.org> writes:
> In sppctl_dt_node_to_map(), the validation loop checks that pin_num is
> within sppctl_pins_all_sz, but does not validate pin_func (bits 15:8)
> before indexing sppctl_list_funcs[pin_func] for fully-pinmuxed pins.
> Check that pin_func is less than sppctl_list_funcs_sz when pin_type
> selects a mux function.
>
> Fixes: aa74c44be19c ("pinctrl: Add driver for Sunplus SP7021")
> Closes: https://sashiko.dev/#/bug/linux-977252d6-b0cc-4d3a-ae2d-59d1e2f8a649
> Cc: stable at vger.kernel.org
> Signed-off-by: Lee Jones <lee at kernel.org>
> ---
Reviewed-by: Andrew Gaylard <ag at ffroot.co.za>
Tested-by: Andrew Gaylard <ag at ffroot.co.za> # on a Figment Design HW84 board
More information about the linux-arm-kernel
mailing list