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

[Xen-changelog] [xen-unstable] Fix domid range check in xenmon.



# 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


 


Rackspace

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