mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/p2m: fix mismatched unlock
Luckily, due to gfn_unlock() currently mapping to p2m_unlock(), this is
only a cosmetic issue right now.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
master commit: 1f180822ad
master date: 2015-09-14 13:39:19 +0200
This commit is contained in:
1 parent
fe842225f2
commit
33562a45c6
1 file changed
+1
-1
@@ -825,7 +825,7 @@ static int set_typed_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn,
|
||||
omfn = p2m->get_entry(p2m, gfn, &ot, &a, 0, NULL);
|
||||
if ( p2m_is_grant(ot) || p2m_is_foreign(ot) )
|
||||
{
|
||||
p2m_unlock(p2m);
|
||||
gfn_unlock(p2m, gfn, 0);
|
||||
domain_crash(d);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||