Messages in this thread | | | From | Linus Walleij <> | Date | Fri, 13 Dec 2019 10:57:53 +0100 | Subject | Re: [PATCH] pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio |
| |
On Wed, Dec 4, 2019 at 3:41 PM Alexandre Torgue <alexandre.torgue@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@st.com>
Patch applied for fixes.
Yours, Linus Walleij
| |