Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
xen
20125-xc-parse-tuple-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 20125-xc-parse-tuple-fix.patch of Package xen
# HG changeset patch # User Keir Fraser <keir.fraser@citrix.com> # Date 1251297719 -3600 # Node ID ed672a604cc7d0acb9418b29cdc3d65ea84543e8 # Parent 71389988f5d4e6417f7da1d86da984acd5118efc xend: Do not pass pointer to a 16-bit domid_t to PyArg_ParseTuple() when it expects a full integer. Signed-off-by: Keir Fraser <keir.fraser@citrix.com> Index: xen-3.3.1-testing/tools/python/xen/lowlevel/xc/xc.c =================================================================== --- xen-3.3.1-testing.orig/tools/python/xen/lowlevel/xc/xc.c +++ xen-3.3.1-testing/tools/python/xen/lowlevel/xc/xc.c @@ -650,10 +650,9 @@ static PyObject *pyxc_deassign_device(Xc static PyObject *pyxc_get_device_group(XcObject *self, PyObject *args) { - domid_t domid; uint32_t bdf = 0; uint32_t max_sdevs, num_sdevs; - int seg, bus, dev, func, rc, i; + int domid, seg, bus, dev, func, rc, i; PyObject *Pystr; char *group_str; char dev_str[9]; @@ -808,7 +807,7 @@ static PyObject *pyxc_dom_check_cpuid(Xc static PyObject *pyxc_dom_set_policy_cpuid(XcObject *self, PyObject *args) { - domid_t domid; + int domid; if ( !PyArg_ParseTuple(args, "i", &domid) ) return NULL; @@ -824,9 +823,8 @@ static PyObject *pyxc_dom_set_policy_cpu static PyObject *pyxc_dom_set_cpuid(XcObject *self, PyObject *args) { - domid_t domid; PyObject *sub_input, *config; - unsigned int input[2]; + unsigned int domid, input[2]; char *regs[4], *regs_transform[4]; if ( !PyArg_ParseTuple(args, "IIOO", &domid,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor