diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-10-03 22:23:48 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-04 01:22:18 (GMT) |
commit | 95bf14bff58fd200f0c2147c84582cc2488367d0 (patch) | |
tree | edc4c02c44981aa1a538cf883f8af34a69fbc552 /Documentation | |
parent | 07f696c7772fb3501e9531de38333c49143a8d52 (diff) | |
download | linux-fsl-qoriq-95bf14bff58fd200f0c2147c84582cc2488367d0.tar.xz |
leds-pca955x: add proper error handling and fix bogus memory handling
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions