cpuset parameter for numa uses cpu maxcpu-1
Daniel
+Mon Nov 5 11:11:45 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+ * src/xml.c: patch from Beth Kon to fix a problem when the
+ cpuset parameter for numa uses cpu maxcpu-1
+
Thu Nov 1 14:32:07 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/xm_internal.c: patches from Masayuki Sunou to fix a problem
while ((*cur >= '0') && (*cur <= '9')) {
ret = ret * 10 + (*cur - '0');
- if (ret > maxcpu)
+ if (ret >= maxcpu)
return (-1);
cur++;
}
}
}
free(cpuset);
+ if (res < 0)
+ goto error;
} else {
virXMLError(conn, VIR_ERR_NO_MEMORY, xmldesc, 0);
}