summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-02-28 17:35:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-09 15:34:50 -0800
commitce16d9cf0481aa71cf31fac9cd5826022c9f12fb (patch)
treea688ec0c1df2537c5c695518103f0ff2421ac268 /tools/perf/scripts/python/bin
parent59dc7ab2e8ab1a0fd0ff104a67f7827436435a46 (diff)
mips/kvm: fix ioctl error handling
commit 0178fd7dcc4451fcb90bec5e91226586962478d2 upstream. 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. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions