mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
18d4a06f9b
commit
d45bb11616
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue