]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ia64: fix the error code of ioctl KVM_IA64_VCPU_GET_STACK failure
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 12 Mar 2010 00:45:39 +0000 (08:45 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:30 +0000 (12:15 +0300)
commitc42793ea24732c021e931001b012c3b14e78cd43
tree7494b38a359df05c50fe98d8eed4cd50d8d16866
parentfdde903542bed945c2015e75b68ff007cd2305b4
KVM: ia64: fix the error code of ioctl KVM_IA64_VCPU_GET_STACK failure

The ioctl KVM_IA64_VCPU_GET_STACK does not set the error code if
copy_to_user() fail, and 0 will be return, we should use -EFAULT
instead of 0 in this case, so this patch fixed it.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/ia64/kvm/kvm-ia64.c