[PATCH] pinctrl: sunxi: Add some defensiveness for regulators array

Chen-Yu Tsai wens at csie.org
Wed Jul 12 10:57:11 PDT 2023


On Thu, Jul 13, 2023 at 1:20 AM Mark Brown <broonie at kernel.org> wrote:
>
> The sunxi pinctrl has a fixed size array it uses to store regulators used
> in the driver. There is currently nothing that ensures that the number of
> elements in the array is large enough to map the regulators defined by the
> individual SoCs. While this is currently the case having an explicit check
> in there will make life easier for anyone debugging memory issues that
> manifest in the driver so let's add one.
>
> Signed-off-by: Mark Brown <broonie at kernel.org>

Reviewed-by: Chen-Yu Tsai <wens at csie.org>



More information about the linux-arm-kernel mailing list