From 1def612c664b435a7835712d01c0a02fba7864b0 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Tue, 21 Aug 2001 22:40:39 +0000 Subject: [PATCH] Correctly restore the spl if we fail to claim the FIQ. --- sys/arch/arm26/arm26/fiq.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm26/arm26/fiq.c b/sys/arch/arm26/arm26/fiq.c index 4b583458a8c9..00378d99c1b2 100644 --- a/sys/arch/arm26/arm26/fiq.c +++ b/sys/arch/arm26/arm26/fiq.c @@ -1,4 +1,4 @@ -/* $NetBSD: fiq.c,v 1.1 2001/08/20 23:08:10 bjh21 Exp $ */ +/* $NetBSD: fiq.c,v 1.2 2001/08/21 22:40:39 bjh21 Exp $ */ /*- * Copyright (c) 2001 Ben Harris @@ -29,7 +29,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: fiq.c,v 1.1 2001/08/20 23:08:10 bjh21 Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fiq.c,v 1.2 2001/08/21 22:40:39 bjh21 Exp $"); #include @@ -49,8 +49,10 @@ fiq_claim(void *handler, size_t size) if (size > 0x100) return -1; s = splhigh(); - if (fiq_claimed) + if (fiq_claimed) { + splx(s); return -1; + } fiq_claimed = 1; splx(s); memcpy(fiqhandler, handler, size);