Commit d45bb116 authored by Devendra Naga's avatar Devendra Naga Committed by Bryan Wu

leds-lp8788: forgotten unlock at lp8788_led_work

at default case of switch we return with out unlocking the mutex.
Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent 18d4a06f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment