]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 21 Oct 2012 12:54:26 +0000 (20:54 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 22 Oct 2012 06:51:42 +0000 (09:51 +0300)
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>
drivers/video/omap2/dss/hdmi.c

index adcc906d12f860fee01fce8089d2cce253960a73..0d6d7213a858634122951fcdc6b78e1e698ca2e5 100644 (file)
@@ -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);