Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9cb0984 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAP: DSS2: fix omap_dispc_register_isr() fail path



Fix handling of error in omap_dispc_register_isr() in case there are no
free isr slots available.

Reported-by: default avatarBen Tucker <btucker@mpcdata.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 0cf35df3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);