aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-07-14 15:49:49 +0100
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-07-14 15:49:49 +0100
commitf4766463d45203382484ae77fbbf1f2aa12d5dcb (patch)
treeae20c22c926385b31b435653aaf2c69b5edf7176 /tools/pygrub
parent3d250640601709b9a6530453bffdeaeeca57741c (diff)
downloadxen-f4766463d45203382484ae77fbbf1f2aa12d5dcb.tar.gz
xen-f4766463d45203382484ae77fbbf1f2aa12d5dcb.tar.bz2
xen-f4766463d45203382484ae77fbbf1f2aa12d5dcb.zip
libxl: Fix segfault in get_all_assigned_devices
pcidevs is an array of ndev elements (ndev is the number of pci devices assigend to a specific domain), but we access pcidevs + *num where *num is the global number of pci devices assigned so far to all domains in the system. Fix the issue removing pcidevs and just realloc'ing *list every time we want to add a new pci device to the array. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/pygrub')
0 files changed, 0 insertions, 0 deletions