[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] softirq: Add sanity assertion about NR_SOFTIRQS.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219919937 -3600
# Node ID 98b89c2b1cde11f06a2f2c8d7efa13613e578ef5
# Parent  dc5e2a1b87d12558c569b49568cb699ec6ba45f4
softirq: Add sanity assertion about NR_SOFTIRQS.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/softirq.c |    1 +
 1 files changed, 1 insertion(+)

diff -r dc5e2a1b87d1 -r 98b89c2b1cde xen/common/softirq.c
--- a/xen/common/softirq.c      Thu Aug 28 11:38:02 2008 +0100
+++ b/xen/common/softirq.c      Thu Aug 28 11:38:57 2008 +0100
@@ -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;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.