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

Linus Walleij linus.walleij at linaro.org
Thu Jul 20 12:33:15 PDT 2023


On Wed, Jul 12, 2023 at 7:20 PM 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>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list