linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()
@ 2012-10-21 12:54 Wei Yongjun
  2012-10-22  6:14 ` Sumit Semwal
  2012-10-22  6:53 ` Tomi Valkeinen
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2012-10-21 12:54 UTC (permalink / raw)
  To: tomi.valkeinen, FlorianSchandinat; +Cc: yongjun_wei, linux-omap, linux-fbdev

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Add the missing unlock on the error handling path in function
hdmi_dump_regs().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
no test
---
 drivers/video/omap2/dss/hdmi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index a48a7dd..8c9b8b3 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -644,8 +644,10 @@ static void hdmi_dump_regs(struct seq_file *s)
 {
 	mutex_lock(&hdmi.lock);
 
-	if (hdmi_runtime_get())
+	if (hdmi_runtime_get()) {
+		mutex_unlock(&hdmi.lock);
 		return;
+	}
 
 	hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s);
 	hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s);



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

end of thread, other threads:[~2012-10-22  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-21 12:54 [PATCH] OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs() Wei Yongjun
2012-10-22  6:14 ` Sumit Semwal
2012-10-22  6:53 ` Tomi Valkeinen

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).