Messages in this thread Patch in this message | | | Subject | [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path | From | Axel Lin <> | Date | Wed, 01 Feb 2012 18:38:18 +0800 |
| |
Signed-off-by: Axel Lin <axel.lin@gmail.com> --- drivers/video/backlight/lp855x_bl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index 8f628b8..8bd0d75 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -41,6 +41,7 @@ static int lp855x_read_byte(struct lp855x *lp, u8 reg, u8 *data) mutex_lock(&lp->xfer_lock); ret = i2c_smbus_read_byte_data(lp->client, reg); if (ret < 0) { + mutex_unlock(&lp->xfer_lock); dev_err(lp->dev, "failed to read 0x%.2x\n", reg); return ret; } -- 1.7.5.4
| |