提交 f8fb7d7b 编写于 作者: W Wei Yongjun 提交者: Tomi Valkeinen

OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()

Add the missing unlock on the error handling path in function
hdmi_dump_regs().
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: NSumit Semwal <sumit.semwal@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 5028ea04
...@@ -645,8 +645,10 @@ static void hdmi_dump_regs(struct seq_file *s) ...@@ -645,8 +645,10 @@ static void hdmi_dump_regs(struct seq_file *s)
{ {
mutex_lock(&hdmi.lock); mutex_lock(&hdmi.lock);
if (hdmi_runtime_get()) if (hdmi_runtime_get()) {
mutex_unlock(&hdmi.lock);
return; return;
}
hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s); hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s);
hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s); hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册