summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lp8788.c
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-26 20:00:31 +0200
committerBryan Wu <bryan.wu@canonical.com>2012-07-27 02:16:07 +0200
commitd45bb11616c94c76c6e40960a120c0687b708a2e (patch)
treebaca1339c1af12ed5c0590b6492b2d39ca764f3a /drivers/leds/leds-lp8788.c
parentLEDS: propagate error codes in blinkm_detect() (diff)
downloadlinux-d45bb11616c94c76c6e40960a120c0687b708a2e.tar.xz
linux-d45bb11616c94c76c6e40960a120c0687b708a2e.zip
leds-lp8788: forgotten unlock at lp8788_led_work
at default case of switch we return with out unlocking the mutex. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/leds-lp8788.c')
-rw-r--r--drivers/leds/leds-lp8788.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-lp8788.c b/drivers/leds/leds-lp8788.c
index 574b49f79093..53bd136f1ef0 100644
--- a/drivers/leds/leds-lp8788.c
+++ b/drivers/leds/leds-lp8788.c
@@ -104,6 +104,7 @@ static void lp8788_led_work(struct work_struct *work)
lp8788_write_byte(led->lp, lp8788_pwm_addr[num], val);
break;
default:
+ mutex_unlock(&led->lock);
return;
}