linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: fix NULL-pointer dereferences introduced in GPIO chip setter conversion
@ 2025-06-18 13:02 Bartosz Golaszewski
  2025-06-18 13:02 ` [PATCH 1/2] gpio: npcm-sgpio: don't use legacy GPIO chip setters Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2025-06-18 13:02 UTC (permalink / raw)
  To: Klara Modin, Avi Fishman, Tomer Maimon, Tali Perry,
	Patrick Venture, Nancy Yuen, Benjamin Fair, Linus Walleij,
	Bartosz Golaszewski
  Cc: openbmc, linux-gpio, linux-kernel, Bartosz Golaszewski

I should have paid more attention when doing the GPIO chip setter
conversions that there are instances where the setters are accessed
directly using the function pointers in struct gpio_chip.

This is not optimal and I am making a mental note to track all such
use-cases and use the appropriate wrapper instead. For now: let's just
fix the issue in gpio-mmio and its users as well as one other converted
driver that suffers from it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (2):
      gpio: npcm-sgpio: don't use legacy GPIO chip setters
      gpio: mmio: don't use legacy GPIO chip setters

 drivers/gpio/gpio-74xx-mmio.c  | 2 +-
 drivers/gpio/gpio-en7523.c     | 2 +-
 drivers/gpio/gpio-mmio.c       | 6 +++---
 drivers/gpio/gpio-npcm-sgpio.c | 4 +---
 4 files changed, 6 insertions(+), 8 deletions(-)
---
base-commit: 7b20980ffc11514d8849811857d915001236bcfa
change-id: 20250618-gpio-mmio-fix-setter-ddd4dd7a03eb

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-19  7:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18 13:02 [PATCH 0/2] gpio: fix NULL-pointer dereferences introduced in GPIO chip setter conversion Bartosz Golaszewski
2025-06-18 13:02 ` [PATCH 1/2] gpio: npcm-sgpio: don't use legacy GPIO chip setters Bartosz Golaszewski
2025-06-18 13:02 ` [PATCH 2/2] gpio: mmio: " Bartosz Golaszewski
2025-06-18 16:53   ` Mark Brown
     [not found]   ` <CGME20250618172953eucas1p17c764efad555d61bb2ae720a39fba98a@eucas1p1.samsung.com>
2025-06-18 17:29     ` Marek Szyprowski
2025-06-18 17:53   ` Klara Modin
2025-06-19  7:14 ` [PATCH 0/2] gpio: fix NULL-pointer dereferences introduced in GPIO chip setter conversion Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).