[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] libxc: Pre-zero argument structures for map/unmap_pirq operations.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1267131955 0 # Node ID b51c7384cf9642b6a2416091f33238ef9b3dfae5 # Parent 60b0e90e2db972d991c405d0e81272bd62d6f4cd libxc: Pre-zero argument structures for map/unmap_pirq operations. From: Yunhong Jiang <yunhong.jiang@xxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 20979:12a5ca59b175 xen-unstable date: Thu Feb 25 11:52:23 2010 +0000 --- tools/libxc/xc_physdev.c | 3 +++ 1 files changed, 3 insertions(+) diff -r 60b0e90e2db9 -r b51c7384cf96 tools/libxc/xc_physdev.c --- a/tools/libxc/xc_physdev.c Wed Feb 24 20:27:19 2010 +0000 +++ b/tools/libxc/xc_physdev.c Thu Feb 25 21:05:55 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 |