]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86/mm: return -ESRCH for an invalid foreign domid
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Nov 2015 14:34:01 +0000 (15:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Nov 2015 14:34:01 +0000 (15:34 +0100)
For consistency with all other invalid domid handling.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm.c

index b65c3a51e2ad4390d7f4a35d51ae41d8db76b8a3..92df36fa197d2bd29095407b851ab7bf8156197c 100644 (file)
@@ -3544,7 +3544,7 @@ long do_mmu_update(
     {
         /* Pagetables belong to a foreign domain (PFD). */
         if ( (pt_owner = rcu_lock_domain_by_id(pt_dom - 1)) == NULL )
-            return -EINVAL;
+            return -ESRCH;
 
         if ( pt_owner == d )
             rcu_unlock_domain(pt_owner);