Skip to content

Commit

Permalink
leds-lp8788: forgotten unlock at lp8788_led_work
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Bryan Wu committed Jul 27, 2012
1 parent 18d4a06 commit d45bb11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/leds/leds-lp8788.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d45bb11

Please sign in to comment.