From: Wei Yongjun Date: Fri, 12 Mar 2010 00:45:39 +0000 (+0800) Subject: KVM: ia64: fix the error code of ioctl KVM_IA64_VCPU_GET_STACK failure X-Git-Tag: v2.6.35-rc1~436^2~187 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0d0920a270b9f2aa20c1cecb162703da32e766;p=pandora-kernel.git 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed