c/s
3d90d6e6 "x86/EPT: split super pages upon mismatching memory types"
accidentally introduced an error path where the epte domain page would be
unmapped twice if splitting the superpage failed.
Only unmap the page if the loop is to be continued. When breaking from the
loop, the page will be unmapped by the subsequent code.
Coverity-ID:
1203047
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
e.sa_p2mt == p2m_mmio_direct);
if ( unlikely(emt < 0) )
{
- unmap_domain_page(epte);
if ( ept_split_super_page(p2m, &e, level, level - 1) )
{
+ unmap_domain_page(epte);
mfn = e.mfn;
continue;
}