summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-02-28 16:35:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-02 10:34:52 +0100
commit0178fd7dcc4451fcb90bec5e91226586962478d2 (patch)
treeb43c852aa32cdb4f1c2377225d005576cc9c945c /arch/x86
parentMerge tag 'kvm-arm-for-4.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-0178fd7dcc4451fcb90bec5e91226586962478d2.tar.xz
linux-0178fd7dcc4451fcb90bec5e91226586962478d2.zip
mips/kvm: fix ioctl error handling
Returning directly whatever copy_to_user(...) or copy_from_user(...) returns may not do the right thing if there's a pagefault: copy_to_user/copy_from_user return the number of bytes not copied in this case, but ioctls need to return -EFAULT instead. Fix up kvm on mips to do return copy_to_user(...)) ? -EFAULT : 0; and return copy_from_user(...)) ? -EFAULT : 0; everywhere. Cc: stable@vger.kernel.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions