Skip to content
Commit f785d022 authored by Sven Wegener's avatar Sven Wegener Committed by Richard Purdie
Browse files

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: default avatarRiku Voipio <riku.voipio@iki.fi>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 12276efc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment