summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorAlexandre Torgue <alexandre.torgue@st.com>2019-12-04 17:41:06 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-12-13 12:57:23 +0300
commit6ba2fd391ac58c1a26874f10c3054a1ea4aca2d0 (patch)
tree03fdfb3d713e9d74fedf839b34d80b9f90d460e6 /certs
parenteb45f2110b036e4e35d3f3aaee1c2ccf49d92425 (diff)
downloadlinux-6ba2fd391ac58c1a26874f10c3054a1ea4aca2d0.tar.xz
pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio
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> Link: https://lore.kernel.org/r/20191204144106.10876-1-alexandre.torgue@st.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions