diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-28 11:38:57 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-28 11:38:57 +0100 |
commit | c07e22cf605a75ce9c6f3a0ffe4b48cf5eab9c60 (patch) | |
tree | 1515b6465d9293d2205653f9711aebea4820a19a /xen/common/softirq.c | |
parent | 26141b3e26d7accfec671cbfe3393d8f85621ab0 (diff) | |
download | xen-c07e22cf605a75ce9c6f3a0ffe4b48cf5eab9c60.tar.gz xen-c07e22cf605a75ce9c6f3a0ffe4b48cf5eab9c60.tar.bz2 xen-c07e22cf605a75ce9c6f3a0ffe4b48cf5eab9c60.zip |
softirq: Add sanity assertion about NR_SOFTIRQS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/softirq.c')
-rw-r--r-- | xen/common/softirq.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |