mint0x33/drivers/pinctrl
Maxim Korotkov 1177bdafe8 pinctrl: single: fix potential NULL dereference
[ Upstream commit d2d73e6d4822140445ad4a7b1c6091e0f5fe703b ]

Added checking of pointer "function" in pcs_set_mux().
pinmux_generic_get_function() can return NULL and the pointer
"function" was dereferenced without checking against NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 571aec4df5 ("pinctrl: single: Use generic pinmux helpers for managing functions")
Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221118104332.943-1-korotkov.maxim.s@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:46:04 +01:00
..
aspeed pinctrl: aspeed: Fix confusing types in return value 2023-02-22 12:46:04 +01:00
bcm
berlin
freescale
intel
mediatek pinctrl: mediatek: Fix missing of_node_put() in mtk_pctrl_init 2022-04-20 09:08:20 +02:00
meson
mvebu pinctrl: mvebu: Fix irq_of_parse_and_map() return value 2022-06-14 16:53:51 +02:00
nomadik pinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map 2022-08-25 11:11:32 +02:00
pxa
qcom pinctrl: qcom: msm8916: Allow CAMSS GP clocks to be muxed 2022-08-25 11:11:32 +02:00
samsung pinctrl: samsung: drop pin banks references on error paths 2022-04-20 09:08:09 +02:00
sh-pfc
sirf
spear
sprd
stm32 pinctrl: stm32: consider the GPIO offset to expose all the GPIO lines 2021-12-29 12:17:35 +01:00
sunxi pinctrl: sunxi: a83t: Fix NAND function name for some pins 2022-07-12 16:27:29 +02:00
tegra
ti
uniphier
vt8500
zte
core.c
core.h
devicetree.c pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map 2022-11-25 17:36:50 +01:00
devicetree.h
Kconfig
Makefile
pinconf-generic.c pinctrl: pinconf-generic: add missing of_node_put() 2023-01-18 09:26:14 +01:00
pinconf.c
pinconf.h
pinctrl-adi2-bf54x.c
pinctrl-adi2-bf60x.c
pinctrl-adi2.c
pinctrl-adi2.h
pinctrl-amd.c pinctrl: amd: Don't save/restore interrupt status and wake status bits 2022-09-05 10:25:02 +02:00
pinctrl-amd.h
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c
pinctrl-at91.c
pinctrl-at91.h
pinctrl-coh901.c
pinctrl-coh901.h
pinctrl-da850-pupd.c
pinctrl-digicolor.c
pinctrl-falcon.c
pinctrl-gemini.c
pinctrl-ingenic.c
pinctrl-lantiq.c
pinctrl-lantiq.h
pinctrl-lpc18xx.c
pinctrl-max77620.c
pinctrl-mcp23s08.c
pinctrl-oxnas.c
pinctrl-palmas.c
pinctrl-pic32.c
pinctrl-pic32.h
pinctrl-pistachio.c pinctrl: pistachio: fix use of irq_of_parse_and_map() 2022-05-12 12:17:07 +02:00
pinctrl-rk805.c
pinctrl-rockchip.c pinctrl/rockchip: Add missing of_node_put() in rockchip_pinctrl_probe 2022-04-20 09:08:20 +02:00
pinctrl-rza1.c
pinctrl-single.c pinctrl: single: fix potential NULL dereference 2023-02-22 12:46:04 +01:00
pinctrl-st.c
pinctrl-sx150x.c
pinctrl-tb10x.c
pinctrl-tz1090-pdc.c
pinctrl-tz1090.c
pinctrl-u300.c
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c
pinctrl-zynq.c
pinmux.c
pinmux.h