Skip to content

gpio: check the return value of irq_alloc_generic_chip()

Bartosz Golaszewski linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gpio: pch: check the return value of irq_alloc_generic_chip()drivers/gpio/gpio-pch.c+12 -31 reply
2/3gpio: sta2x11: check the return value of irq_alloc_generic_chip()drivers/gpio/gpio-sta2x11.c+10 -21 reply
3/3gpio: ml-ioh: check the return value of irq_alloc_generic_chip()drivers/gpio/gpio-ml-ioh.c+13 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] gpio: check the return value of irq_alloc_generic_chip()

While hacking on some irq devres stuff I noticed that the return value of irq_alloc_generic_chip() is not being checked in a couple GPIO drivers.

Those routines can fail, so check it and bail out if they do.

Bartosz Golaszewski (3):
gpio: pch: check the return value of irq_alloc_generic_chip()
gpio: sta2x11: check the return value of irq_alloc_generic_chip()
gpio: ml-ioh: check the return value of irq_alloc_generic_chip()

 drivers/gpio/gpio-ml-ioh.c  | 16 +++++++++++++---
 drivers/gpio/gpio-pch.c     | 15 ++++++++++++---
 drivers/gpio/gpio-sta2x11.c | 12 ++++++++++--
 3 files changed, 35 insertions(+), 8 deletions(-)
Signature · 1 line
2.9.3