linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path
@ 2012-02-01 10:38 Axel Lin
  2012-02-02  1:20 ` Kim, Milo
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-02-01 10:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Richard Purdie, Milo(Woogyom) Kim, Andrew Morton

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path
  2012-02-01 10:38 [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path Axel Lin
@ 2012-02-02  1:20 ` Kim, Milo
  0 siblings, 0 replies; 2+ messages in thread
From: Kim, Milo @ 2012-02-02  1:20 UTC (permalink / raw)
  To: Axel Lin; +Cc: Richard Purdie, Andrew Morton, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 590 bytes --]


> -----Original Message-----
> From: Axel Lin [mailto:axel.lin@gmail.com]
> Sent: Wednesday, February 01, 2012 7:38 PM
> To: linux-kernel@vger.kernel.org
> Cc: Richard Purdie; Kim, Milo; Andrew Morton
> Subject: [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in
> lp855x_read_byte error path
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Acked-by: Milo(Woogyom) Kim <milo.kim@ti.com>

Thanks !

Best Regards,
Milo -
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-02  1:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 10:38 [PATCH] backlight: lp855x_bl: Add missing mutex_unlock in lp855x_read_byte error path Axel Lin
2012-02-02  1:20 ` Kim, Milo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).