leds-lp8788: forgotten unlock at lp8788_led_work
authorDevendra Naga <develkernel412222@gmail.com>
Thu, 26 Jul 2012 18:00:31 +0000 (02:00 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Fri, 27 Jul 2012 00:16:07 +0000 (08:16 +0800)
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>
drivers/leds/leds-lp8788.c

index 574b49f79093b0f30bdb14b11046a98c646a8e3b..53bd136f1ef070a1e045b97f8dbc6b55e30c0ca6 100644 (file)
@@ -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;
        }