diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-25 11:52:23 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-25 11:52:23 +0000 |
commit | 039950d904b0a95d1ae6238cd3c80013756adad9 (patch) | |
tree | c9654a327c5a1d60cb4955921125eac9d86f1fa1 /tools/libxc/xc_physdev.c | |
parent | e1ea3ce4f2473c604214981778dff06cb0a092f5 (diff) | |
download | xen-039950d904b0a95d1ae6238cd3c80013756adad9.tar.gz xen-039950d904b0a95d1ae6238cd3c80013756adad9.tar.bz2 xen-039950d904b0a95d1ae6238cd3c80013756adad9.zip |
libxc: Pre-zero argument structures for map/unmap_pirq operations.
From: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_physdev.c')
-rw-r--r-- | tools/libxc/xc_physdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xc_physdev.c b/tools/libxc/xc_physdev.c index 00ac829afa..dd484a1bae 100644 --- a/tools/libxc/xc_physdev.c +++ b/tools/libxc/xc_physdev.c @@ -31,6 +31,7 @@ int xc_physdev_map_pirq(int xc_handle, if ( !pirq ) return -EINVAL; + memset(&map, 0, sizeof(struct physdev_map_pirq)); map.domid = domid; map.type = MAP_PIRQ_TYPE_GSI; map.index = index; @@ -59,6 +60,7 @@ int xc_physdev_map_pirq_msi(int xc_handle, if ( !pirq ) return -EINVAL; + memset(&map, 0, sizeof(struct physdev_map_pirq)); map.domid = domid; map.type = MAP_PIRQ_TYPE_MSI; map.index = index; @@ -83,6 +85,7 @@ int xc_physdev_unmap_pirq(int xc_handle, int rc; struct physdev_unmap_pirq unmap; + memset(&unmap, 0, sizeof(struct physdev_unmap_pirq)); unmap.domid = domid; unmap.pirq = pirq; |