[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: Pre-zero argument structures for map/unmap_pirq operations.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1267098743 0 # Node ID 12a5ca59b175ba152c9223d90547ddd800d40a1f # Parent 3d8e819241b088376bcf3e55a4cc51eebdfdaf62 libxc: Pre-zero argument structures for map/unmap_pirq operations. From: Yunhong Jiang <yunhong.jiang@xxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/libxc/xc_physdev.c | 3 +++ 1 files changed, 3 insertions(+) diff -r 3d8e819241b0 -r 12a5ca59b175 tools/libxc/xc_physdev.c --- a/tools/libxc/xc_physdev.c Wed Feb 24 20:27:56 2010 +0000 +++ b/tools/libxc/xc_physdev.c Thu Feb 25 11:52:23 2010 +0000 @@ -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_handl 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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |