WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] softirq: Add sanity assertion about NR_SOFTIRQS.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Aug 2008 08:30:19 -0700
Delivery-date: Fri, 29 Aug 2008 08:30:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] softirq: Add sanity assertion about NR_SOFTIRQS., Xen patchbot-unstable <=