mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86: respect mapcache_domain_init() failing
The function itself properly handles and hands onwards failure from
create_perdomain_mapping(). Therefore its caller should respect possible
failure, too.
Fixes: 4b28bf6ae9 ("x86: re-introduce map_domain_page() et al")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
d104a07524
commit
7270fdc7a0
1 file changed
+2
-1
@@ -858,7 +858,8 @@ int arch_domain_create(struct domain *d,
|
||||
}
|
||||
else if ( is_pv_domain(d) )
|
||||
{
|
||||
mapcache_domain_init(d);
|
||||
if ( (rc = mapcache_domain_init(d)) != 0 )
|
||||
goto fail;
|
||||
|
||||
if ( (rc = pv_domain_initialise(d)) != 0 )
|
||||
goto fail;
|
||||
|
||||