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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
5028ea04c8
commit
f8fb7d7b7b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue