]> xenbits.xensource.com Git - xen.git/commitdiff
x86/domctl: further fix to XEN_DOMCTL_[gs]etvcpuextstate
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jun 2014 10:03:16 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jun 2014 10:03:16 +0000 (12:03 +0200)
Do not clobber errors from certain codepaths.  Clobbering of -EINVAL from
failing "evc->size <= PV_XSAVE_SIZE(_xcr0_accum)" was a pre-existing bug.

However, clobbering -EINVAL/-EFAULT from the get codepath was a bug
unintentionally introduced by 090ca8c1 "x86/domctl: two functional fixes to
XEN_DOMCTL_[gs]etvcpuextstate".

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c

index 87af350ab49079dc91a4ce824fcacf3d5b04acd1..d927b597ac3aa869a8f6c690ad7b3dfb648b1bf5 100644 (file)
@@ -1277,8 +1277,6 @@ long arch_do_domctl(
             xfree(receive_buf);
         }
 
-        ret = 0;
-
     vcpuextstate_out:
         if ( domctl->cmd == XEN_DOMCTL_getvcpuextstate )
             copyback = 1;