[PATCH] staging: iio: light: isl29018: Add missing mutex_unlock on error path

Daniel Baluta daniel.baluta at gmail.com
Tue Apr 28 13:26:21 EEST 2015


On Mon, Apr 27, 2015 at 2:08 PM, Roberta Dobrescu
<roberta.dobrescu at gmail.com> wrote:
> This patch fixes the following warning:
>
> drivers/staging/iio/light/isl29018.c:386 isl29018_write_raw() warn:
> inconsistent returns 'mutex:&chip->lock'.
>  Locked on:   line 374
>  Unlocked on: line 386
>
> Signed-off-by: Roberta Dobrescu <roberta.dobrescu at gmail.com>
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>


Oops. Looks good :).

Daniel.


More information about the firefly mailing list