diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2016-02-28 17:35:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-02 10:34:52 +0100 |
commit | 0178fd7dcc4451fcb90bec5e91226586962478d2 (patch) | |
tree | b43c852aa32cdb4f1c2377225d005576cc9c945c /arch/blackfin | |
parent | 2b097e9bc3742d4ffc63fe64b8fd44242d662392 (diff) | |
download | linux-0178fd7dcc4451fcb90bec5e91226586962478d2.tar.bz2 |
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/blackfin')
0 files changed, 0 insertions, 0 deletions