A random value is being returned as of c/s 26350:ba386fd2bf17 in the success case. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -687,10 +687,11 @@ long do_memory_op(unsigned long cmd, XEN 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); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Jan-15 14:31 UTC
Re: [PATCH] fix XENMEM_remove_from_physmap return value
On Tue, 2013-01-15 at 13:58 +0000, Jan Beulich wrote:> 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>
Daniel De Graaf
2013-Jan-15 14:46 UTC
Re: [PATCH] fix XENMEM_remove_from_physmap return value
On 01/15/2013 08:58 AM, Jan Beulich wrote:> 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: Daniel De Graaf <dgdegra@tycho.nsa.gov>