From: Devendra Naga Date: Thu, 26 Jul 2012 18:00:31 +0000 (+0800) Subject: leds-lp8788: forgotten unlock at lp8788_led_work X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d45bb11616c94c76c6e40960a120c0687b708a2e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Bryan Wu --- 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; }