Re: [PATCH] pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio

From: Linus Walleij
Date: Fri Dec 13 2019 - 04:58:12 EST


On Wed, Dec 4, 2019 at 3:41 PM Alexandre Torgue <alexandre.torgue@xxxxxx> 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@xxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij