Fix domid range check in xenmon.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-07-25 11:53:29 +01:00
1 parent ab78272006
commit ccdde61726
1 file changed
+3 -5
+3 -5
View File
@@ -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++)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.