No point in doing the assignment if we're just going to crash anyway.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
p2m_pod_emergency_sweep(p2m);
}
+ if ( p2m->pod.count == 0 )
+ goto out_of_memory;
+
/* Keep track of the highest gfn demand-populated by a guest fault */
if ( gfn > p2m->pod.max_guest )
p2m->pod.max_guest = gfn;
- if ( p2m->pod.count == 0 )
- goto out_of_memory;
-
/* Get a page f/ the cache. A NULL return value indicates that the
* 2-meg range should be marked singleton PoD, and retried */
if ( (p = p2m_pod_cache_get(p2m, order)) == NULL )