A random value is being returned as of c/s 26350:
ba386fd2bf17 in the
success case.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
if ( d == NULL )
return -ESRCH;
- if ( xsm_remove_from_physmap(XSM_TARGET, current->domain, d) )
+ rc = xsm_remove_from_physmap(XSM_TARGET, current->domain, d);
+ if ( rc )
{
rcu_unlock_domain(d);
- return -EPERM;
+ return rc;
}
domain_lock(d);