From 2f82bf5f5371406899a5e31936e88b31f5e0b3ee Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 29 Apr 2017 18:13:25 +0000 Subject: [PATCH] Decrement ci_idepth on all returns from agintc_irq_handler(). --- sys/arch/arm64/dev/agintc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index e7016ddc450..e2efc1f9aec 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agintc.c,v 1.1 2017/04/29 17:24:41 kettenis Exp $ */ +/* $OpenBSD: agintc.c,v 1.2 2017/04/29 18:13:25 kettenis Exp $ */ /* * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn * @@ -624,11 +624,14 @@ agintc_irq_handler(void *frame) if (irq == 1023) { sc->sc_spur.ec_count++; + ci->ci_idepth--; return; } - if (irq >= sc->sc_nintr) + if (irq >= sc->sc_nintr) { + ci->ci_idepth--; return; + } pri = sc->sc_agintc_handler[irq].iq_irq; s = agintc_splraise(pri); -- 2.20.1