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] Fix domid range check in xenmon.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix domid range check in xenmon.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Jul 2006 13:00:37 +0000
Delivery-date: Tue, 25 Jul 2006 06:03:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID a61fd84125aab25a2a3b8a5f1a61a3dac3acbce8
# Parent  849b8ce387c3878c952cf08de906ab3d7e744616
Fix domid range check in xenmon.
Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/xenmon/xenbaked.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff -r 849b8ce387c3 -r a61fd84125aa tools/xenmon/xenbaked.c
--- a/tools/xenmon/xenbaked.c   Tue Jul 25 11:41:45 2006 +0100
+++ b/tools/xenmon/xenbaked.c   Tue Jul 25 11:53:29 2006 +0100
@@ -766,11 +766,9 @@ int indexof(int domid)
   int xc_handle, ndomains;
   extern void qos_kill_thread(int domid);
   
-  if (domid < 0 || domid >= NDOMAINS) {        // shouldn't happen
-    if (domid != IDLE_DOMAIN_ID) {
-      printf("bad domain id: %d\r\n", domid);
-      return 0;
-    }
+  if (domid < 0) {     // shouldn't happen
+    printf("bad domain id: %d\r\n", domid);
+    return 0;
   }
 
   for (idx=0; idx<NDOMAINS; idx++)

_______________________________________________
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] Fix domid range check in xenmon., Xen patchbot-unstable <=