Message ID | 20200204093411.15887-2-julien@xen.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | xen/x86: hap: Small clean-up/hardening in hap_enable() | expand |
On Tue, Feb 04, 2020 at 09:34:10AM +0000, Julien Grall wrote: > From: Julien Grall <jgrall@amazon.com> > > Signed-off-by: Julien Grall <jgrall@amazon.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> Thanks, Roger.
diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index 3d93f3451c..31362a31b6 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -473,7 +473,8 @@ int hap_enable(struct domain *d, u32 mode) goto out; } - for (i = 0; i < MAX_NESTEDP2M; i++) { + for ( i = 0; i < MAX_NESTEDP2M; i++ ) + { rv = p2m_alloc_table(d->arch.nested_p2m[i]); if ( rv != 0 ) goto out;