diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 35247e1ade..1585526a87 100644 --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -886,7 +886,7 @@ long arch_do_domctl( case XEN_DOMCTL_gettscinfo: { - xen_guest_tsc_info_t info; + xen_guest_tsc_info_t info = { 0 }; ret = -EINVAL; if ( d == current->domain ) /* no domain_pause() */ diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 0cb6ee15fb..70202e8b05 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -76,7 +76,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) case XEN_SYSCTL_getdomaininfolist: { struct domain *d; - struct xen_domctl_getdomaininfo info; + struct xen_domctl_getdomaininfo info = { 0 }; u32 num_domains = 0; rcu_read_lock(&domlist_read_lock);