diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-12-03 09:12:53 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-08 13:38:58 +0100 |
commit | f785d022add53ec4d9625495b335bed40bd6c079 (patch) | |
tree | 99225d733708b6dbcc54ffa0a33f528eb756ee1e /.gitignore | |
parent | leds: Fix wrong loop direction on removal in leds-ams-delta (diff) | |
download | linux-f785d022add53ec4d9625495b335bed40bd6c079.tar.xz linux-f785d022add53ec4d9625495b335bed40bd6c079.zip |
leds: leds-pca9532 - fix memory leak and properly handle errors
When the registration fails, we need to release the memory we allocated.
Also we need to save the error from led_classdev_register and propagate
it up, else we'll return success, even if we failed.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions