ia64/xen-unstable

changeset 18408:98b89c2b1cde

softirq: Add sanity assertion about NR_SOFTIRQS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Aug 28 11:38:57 2008 +0100 (2008-08-28)
parents dc5e2a1b87d1
children b674d7159549
files xen/common/softirq.c
line diff
     1.1 --- a/xen/common/softirq.c	Thu Aug 28 11:38:02 2008 +0100
     1.2 +++ b/xen/common/softirq.c	Thu Aug 28 11:38:57 2008 +0100
     1.3 @@ -49,6 +49,7 @@ asmlinkage void do_softirq(void)
     1.4  
     1.5  void open_softirq(int nr, softirq_handler handler)
     1.6  {
     1.7 +    ASSERT(nr < NR_SOFTIRQS);
     1.8      softirq_handlers[nr] = handler;
     1.9  }
    1.10