From c07e22cf605a75ce9c6f3a0ffe4b48cf5eab9c60 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 28 Aug 2008 11:38:57 +0100 Subject: [PATCH] softirq: Add sanity assertion about NR_SOFTIRQS. Signed-off-by: Keir Fraser --- xen/common/softirq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/softirq.c b/xen/common/softirq.c index be4728f2e0..a4ae6a0c62 100644 --- a/xen/common/softirq.c +++ b/xen/common/softirq.c @@ -49,6 +49,7 @@ asmlinkage void do_softirq(void) void open_softirq(int nr, softirq_handler handler) { + ASSERT(nr < NR_SOFTIRQS); softirq_handlers[nr] = handler; } -- 2.30.2