diff options
author | Devendra Naga <develkernel412222@gmail.com> | 2012-07-26 14:00:31 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-26 20:16:07 -0400 |
commit | d45bb11616c94c76c6e40960a120c0687b708a2e (patch) | |
tree | baca1339c1af12ed5c0590b6492b2d39ca764f3a /drivers/leds | |
parent | 18d4a06f9bb013737b9c21921b15033afb0198d9 (diff) |
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')
-rw-r--r-- | drivers/leds/leds-lp8788.c | 1 |
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) | |||
104 | lp8788_write_byte(led->lp, lp8788_pwm_addr[num], val); | 104 | lp8788_write_byte(led->lp, lp8788_pwm_addr[num], val); |
105 | break; | 105 | break; |
106 | default: | 106 | default: |
107 | mutex_unlock(&led->lock); | ||
107 | return; | 108 | return; |
108 | } | 109 | } |
109 | 110 | ||