projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26141b3
)
softirq: Add sanity assertion about NR_SOFTIRQS.
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 28 Aug 2008 10:38:57 +0000
(11:38 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 28 Aug 2008 10:38:57 +0000
(11:38 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/softirq.c
patch
|
blob
|
history
diff --git
a/xen/common/softirq.c
b/xen/common/softirq.c
index be4728f2e07534505c18f31ce30e05485174dfe5..a4ae6a0c62d0bf3b94da6f6b46abd48118bca063 100644
(file)
--- 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;
}