backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path
Subsystems (2)
PATCH 1/1 backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path
Signed-off-by Axel Lin <[email protected]>
--- drivers/video/backlight/lp855x_bl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/lp855x_bl.c +1 -0
@@ -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
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 missingmutex_unlockinlp855x_read_byteerror pathSigned-off-by Axel Lin <[email protected]>
Thanks !
Best Regards,
Milo - ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�