[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdb30kFbpxb52GALXJM67tFvJ8tR83NR+44PMOKJzJjruQ@mail.gmail.com>
Date: Fri, 13 Dec 2019 10:57:53 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Alexandre Torgue <alexandre.torgue@...com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-stm32@...md-mailman.stormreply.com,
Stefan Wahren <stefan.wahren@...e.com>
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@...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@...com>
Patch applied for fixes.
Yours,
Linus Walleij
Powered by blists - more mailing lists