Skip to content

Commit

Permalink
OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()
Browse files Browse the repository at this point in the history
Add the missing unlock on the error handling path in function
hdmi_dump_regs().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Wei Yongjun authored and Tomi Valkeinen committed Oct 22, 2012
1 parent 5028ea0 commit f8fb7d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,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);
Expand Down

0 comments on commit f8fb7d7

Please sign in to comment.