[Linux-stm32] [PATCH] pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio

Linus Walleij linus.walleij at linaro.org
Fri Dec 13 09:57:53 UTC 2019


On Wed, Dec 4, 2019 at 3:41 PM Alexandre Torgue <alexandre.torgue at st.com> wrote:

> This commit adds a check on ops pointer to avoid a kernel panic when
> ops->strict is used. Indeed, on some pinctrl driver (at least for
> pinctrl-stmfx) the pinmux ops is not implemented. Let's assume than gpio
> can be used in this case.
>
> Fixes: 472a61e777fe ("pinctrl/gpio: Take MUX usage into account")
> Signed-off-by: Alexandre Torgue <alexandre.torgue at st.com>

Patch applied for fixes.

Yours,
Linus Walleij



More information about the Linux-stm32 mailing list