Skip to contentSkip to conversation

xenalyze: Fix cr3_switch not to access hvm struct before it's initialized

PATCH New George Dunlap 1 participant 1 message Mar 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenalyze: Fix cr3_switch not to access hvm struct before it's initialized

# HG changeset patch
# User George Dunlap <[email protected]>
# Date 1299096700 0
# Node ID cf2f412606b355508f25d9781f7b5fc8bf02f389
# Parent 3448fc7df9669c29a1eb8427fd840bf7152973eb
xenalyze: Fix cr3_switch not to access hvm struct before it's initialized

xenalyze.c +3 -0
diff -r 3448fc7df966 -r cf2f412606b3 xenalyze.c
@@ -3873,6 +3873,9 @@
     unsigned long long now = P.now;
     unsigned long long gmfn = val >> 12;
 
+    if ( !h->init )
+        return;
+
     if(opt.with_cr3_enumeration) {
         if(v->cr3.data) {
             struct cr3_value_struct *cur = v->cr3.data;