Skip to contentSkip to conversation

backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path

PATCH In review Axel Lin 2 participants 2 messages Feb 1, 2012 – Feb 2, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path

---
 drivers/video/backlight/lp855x_bl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/lp855x_bl.c +1 -0
index 8f628b8..8bd0d75 100644
@@ -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;
 	}
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Axel Lin [mailto:[email protected]]
Sent: Wednesday, February 01, 2012 7:38 PM
To: [email protected]
Cc: Richard Purdie; Kim, Milo; Andrew Morton
Subject: [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path

Thanks !

Best Regards,
Milo - ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�