linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] gpio: check the return value of irq_alloc_generic_chip()
@ 2017-05-25  8:37 Bartosz Golaszewski
  2017-05-25  8:37 ` [PATCH 1/3] gpio: pch: " Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2017-05-25  8:37 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot
  Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

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(-)

-- 
2.9.3


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

end of thread, other threads:[~2017-05-29 11:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25  8:37 [PATCH 0/3] gpio: check the return value of irq_alloc_generic_chip() Bartosz Golaszewski
2017-05-25  8:37 ` [PATCH 1/3] gpio: pch: " Bartosz Golaszewski
2017-05-29 11:33   ` Linus Walleij
2017-05-25  8:37 ` [PATCH 2/3] gpio: sta2x11: " Bartosz Golaszewski
2017-05-29 11:34   ` Linus Walleij
2017-05-25  8:37 ` [PATCH 3/3] gpio: ml-ioh: " Bartosz Golaszewski
2017-05-29 11:34   ` Linus Walleij

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).