Skip to content

gpio: fix gpio_chip add and remove

Johan Hovold linux-gpio lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gpio: fix memory and reference leaks in gpiochip_add error pathdrivers/gpio/gpiolib.c+7 -40 replies
2/6gpio: fix gpio-chip list corruptiondrivers/gpio/gpiolib.c+10 -70 replies
3/6gpio: clean up gpiochip_add error handlingdrivers/gpio/gpiolib.c+17 -210 replies
4/6gpio: fix memory leak and sleep-while-atomicdrivers/gpio/gpiolib.c+2 -10 replies
5/6gpio: fix sleep-while-atomic in gpiochip_removedrivers/gpio/gpiolib.c+1 -30 replies
6/6gpio: unregister gpiochip device before removing itdrivers/gpio/gpiolib.c+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] gpio: fix gpio_chip add and remove

This series fix a few issues with gpiochip_add and gpiochip_remove.

The gpio-chip removal paths have probably not been exercised much, and there are further issues here that I'm working on fixing in order better support hot-plugging of gpio chips. I believe these patches should go into 3.19 meanwhile.

Johan

Johan Hovold (6):
gpio: fix memory and reference leaks in gpiochip_add error path
gpio: fix gpio-chip list corruption
gpio: clean up gpiochip_add error handling
gpio: fix memory leak and sleep-while-atomic
gpio: fix sleep-while-atomic in gpiochip_remove
gpio: unregister gpiochip device before removing it

 drivers/gpio/gpiolib.c | 58 ++++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 28 deletions(-)
Signature · 1 line
2.0.5