android_kernel_motorola_sm6375/drivers/pinctrl
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bartosz Golaszewski 1a7fc8fed2 pinctrl: check the return value of pinmux_ops::get_function_name()
commit 4002ee98c022d671ecc1e4a84029e9ae7d8a5603 upstream.

While the API contract in docs doesn't specify it explicitly, the
generic implementation of the get_function_name() callback from struct
pinmux_ops - pinmux_generic_get_function_name() - can fail and return
NULL. This is already checked in pinmux_check_ops() so add a similar
check in pinmux_func_name_to_selector() instead of passing the returned
pointer right down to strcmp() where the NULL can get dereferenced. This
is normal operation when adding new pinfunctions.

Cc: stable@vger.kernel.org
Tested-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-29 13:59:50 +01:00
..
actions
aspeed
bcm pinctrl: bcm281xx: Use "unsigned int" instead of bare "unsigned" 2025-06-04 14:32:32 +02:00
berlin
cirrus pinctrl: lochnagar: Don't build on MIPS 2024-01-25 14:34:19 -08:00
freescale pinctrl: freescale: mxs: Fix refcount of child 2024-08-19 05:33:34 +02:00
intel
mediatek pinctrl: mediatek: paris: Fix PIN_CONFIG_INPUT_SCHMITT_ENABLE readback 2024-05-17 11:43:56 +02:00
meson pinctrl: meson-gxl: add missing i2c_d pinmux 2025-10-29 13:59:46 +01:00
mvebu pinctrl: armada-37xx: propagate error from armada_37xx_gpio_get() 2025-06-27 11:02:55 +01:00
nomadik
nuvoton
pxa
qcom pinctrl: qcom: msm: mark certain pins as invalid for interrupts 2025-07-17 18:25:03 +02:00
samsung
sh-pfc
sirf
spear
sprd
stm32 pinctrl: stm32: Manage irq affinity settings 2025-08-28 16:21:28 +02:00
sunxi pinctrl: sunxi: Fix memory leak on krealloc failure 2025-08-28 16:21:20 +02:00
tegra
ti pinctrl: ti: ti-iodelay: fix possible memory leak when pinctrl_enable() fails 2024-08-19 05:33:34 +02:00
uniphier
vt8500
zte
core.c pinctrl: core: fix possible memory leak when pinctrl_enable() fails 2024-08-19 05:33:34 +02:00
core.h
devicetree.c pinctrl: devicetree: do not goto err when probing hogs in pinctrl_dt_to_map 2025-06-04 14:32:33 +02:00
devicetree.h
Kconfig pinctrl: STMFX: add missing HAS_IOMEM dependency 2025-09-04 14:05:53 +02:00
Makefile
pinconf-generic.c
pinconf.c
pinconf.h
pinctrl-amd.c
pinctrl-amd.h
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c
pinctrl-at91.c pinctrl: at91: Fix possible out-of-boundary access 2025-06-27 11:02:46 +01:00
pinctrl-at91.h
pinctrl-axp209.c
pinctrl-bm1880.c
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: mcp23s08: Fix sleeping in atomic context due to regmap locking 2025-01-09 13:23:37 +01:00
pinctrl-ocelot.c
pinctrl-oxnas.c
pinctrl-palmas.c
pinctrl-pic32.c
pinctrl-pic32.h
pinctrl-pistachio.c
pinctrl-rk805.c
pinctrl-rockchip.c pinctrl: rockchip: fix pinmux reset in rockchip_pmx_set 2024-07-05 09:08:26 +02:00
pinctrl-rza1.c
pinctrl-rza2.c pinctrl: renesas: rza2: Fix missing of_node_put() call 2025-04-10 14:29:40 +02:00
pinctrl-rzn1.c
pinctrl-single.c pinctrl: single: fix missing error code in pcs_probe() 2024-11-08 16:20:31 +01:00
pinctrl-st.c
pinctrl-stmfx.c
pinctrl-sx150x.c
pinctrl-tb10x.c
pinctrl-u300.c
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c
pinctrl-zynq.c
pinmux.c pinctrl: check the return value of pinmux_ops::get_function_name() 2025-10-29 13:59:50 +01:00
pinmux.h