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-3.4-testing] xend: Do not pass pointer to a 16-bit

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] xend: Do not pass pointer to a 16-bit domid_t to PyArg_ParseTuple()
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 03 Sep 2009 05:10:36 -0700
Delivery-date: Thu, 03 Sep 2009 05:14:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251968703 -3600
# Node ID 19e1a1c5ac1ab82ac2f4c41eff364bbdaeb45c45
# Parent  334ae37dddf4802198d6fd36773f88f7f33eb9ad
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@xxxxxxxxxx>
xen-unstable changeset:   20125:ed672a604cc7
xen-unstable date:        Wed Aug 26 15:41:59 2009 +0100
---
 tools/python/xen/lowlevel/xc/xc.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff -r 334ae37dddf4 -r 19e1a1c5ac1a tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Thu Sep 03 10:03:55 2009 +0100
+++ b/tools/python/xen/lowlevel/xc/xc.c Thu Sep 03 10:05:03 2009 +0100
@@ -650,10 +650,9 @@ static PyObject *pyxc_get_device_group(X
 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_set_policy_cpu
 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_cpuid(XcOb
 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,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] xend: Do not pass pointer to a 16-bit domid_t to PyArg_ParseTuple(), Xen patchbot-3.4-testing <=