]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: npcm-sgpio: don't use legacy GPIO chip setters
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 18 Jun 2025 13:02:06 +0000 (15:02 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 19 Jun 2025 07:13:44 +0000 (09:13 +0200)
commit1fd7d210952938e8ef6d87287e056e25a2fc0547
treecc3a151bcb7b365df86b8f01aa1f52f7b6f3d61a
parent0a005148817cedf8181a0a1699d399d47358596a
gpio: npcm-sgpio: don't use legacy GPIO chip setters

We've converted this driver to using the new GPIO line value setters but
missed the instance where the legacy callback is accessed directly using
the function pointer. This will lead to a NULL-pointer dereference as
this pointer is no longer populated. Fix it.

Fixes: 0e1a8930c941 ("gpio: npcm-sgpio: use new GPIO line value setter callbacks")
Link: https://lore.kernel.org/r/20250618-gpio-mmio-fix-setter-v1-1-2578ffb77019@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-npcm-sgpio.c