![]() Check the return value of led_classdev_register and unregister all registered devices, if registering one device fails. Also the dynamic memory handling is totally bogus. You can't allocate multiple chunks via kzalloc() and expect them to be in order later. I wonder how this ever worked. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Acked-by: Nate Case <ncase@xes-inc.com> Tested-by: Nate Case <ncase@xes-inc.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
led-class.c | ||
led-core.c | ||
led-triggers.c | ||
leds-ams-delta.c | ||
leds-atmel-pwm.c | ||
leds-clevo-mail.c | ||
leds-cm-x270.c | ||
leds-cobalt-qube.c | ||
leds-cobalt-raq.c | ||
leds-corgi.c | ||
leds-fsg.c | ||
leds-gpio.c | ||
leds-h1940.c | ||
leds-hp6xx.c | ||
leds-locomo.c | ||
leds-net48xx.c | ||
leds-pca955x.c | ||
leds-pca9532.c | ||
leds-s3c24xx.c | ||
leds-spitz.c | ||
leds-wrap.c | ||
leds.h | ||
ledtrig-default-on.c | ||
ledtrig-heartbeat.c | ||
ledtrig-ide-disk.c | ||
ledtrig-timer.c |