]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/EPT: correct double unmap_domain_page() on error path
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2014 12:45:10 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2014 12:45:10 +0000 (14:45 +0200)
commit75e253bb78f2b7905c20a0caddd8eb2fb77e5eab
treebdf5397d349540903709f87cc72caaee574e76b1
parent816f6224823320c8452fd3af5d873a2b82f5e1c3
x86/EPT: correct double unmap_domain_page() on error path

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>
xen/arch/x86/mm/p2m-ept.c