OMAP: DSS2: fix omap_dispc_register_isr() fail path
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 4 Mar 2011 16:19:54 +0000 (18:19 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Mar 2011 13:46:30 +0000 (15:46 +0200)
Fix handling of error in omap_dispc_register_isr() in case there are no
free isr slots available.

Reported-by: Ben Tucker <btucker@mpcdata.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c

index dae9686fb437fb45de753e3b0fa5a446b6f022ad..4a368c47700e95265de17da50f0f7cd263112cc9 100644 (file)
@@ -2831,6 +2831,9 @@ int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask)
                break;
        }
 
+       if (ret)
+               goto err;
+
        _omap_dispc_set_irqs();
 
        spin_unlock_irqrestore(&dispc.irq_lock, flags);