]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
domctl: ssidref is not initialized if !XSM_ENABLE
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 20 Aug 2008 08:08:30 +0000 (09:08 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 20 Aug 2008 08:08:30 +0000 (09:08 +0100)
The ssidref in getdomaininfo() is not initialized when XSM_ENABLE is
not defined. So, xentop might display a wrong value of ssid.

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
xen-unstable changeset:   18346:56770e3eb76e123632962522d99b45a984b282c0
xen-unstable date:        Wed Aug 20 09:06:58 2008 +0100

xen/common/domctl.c

index 3f87a73c849fa63806e66eb6bfb217ac5173536f..e44e6263fca7b8664cc823c51408d94e3fa448eb 100644 (file)
@@ -97,6 +97,7 @@ void getdomaininfo(struct domain *d, struct xen_domctl_getdomaininfo *info)
     
     info->domain = d->domain_id;
     info->nr_online_vcpus = 0;
+    info->ssidref = 0;
     
     /* 
      * - domain is marked as blocked only if all its vcpus are blocked