Skip to content

Commit

Permalink
OMAP: DSS2: fix omap_dispc_register_isr() fail path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen committed Mar 11, 2011
1 parent 0cf35df commit b9cb098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9cb098

Please sign in to comment.