aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-02-28 16:31:39 +0200
committerAlex Williamson <alex.williamson@redhat.com>2016-02-28 07:38:52 -0700
commit8160c4e455820d5008a1116d2dca35f0363bb062 (patch)
tree624ca03b148b98379963ff4e1d4df85f75f7e087 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentLinux 4.5-rc5 (diff)
downloadwireguard-linux-8160c4e455820d5008a1116d2dca35f0363bb062.tar.xz
wireguard-linux-8160c4e455820d5008a1116d2dca35f0363bb062.zip
vfio: fix ioctl error handling
Calling return copy_to_user(...) in an ioctl will not do the right thing if there's a pagefault: copy_to_user returns the number of bytes not copied in this case. Fix up vfio to do return copy_to_user(...)) ? -EFAULT : 0; everywhere. Cc: stable@vger.kernel.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions