diff options
author | 2016-02-25 10:52:12 +0300 | |
---|---|---|
committer | 2016-02-25 21:48:42 -0700 | |
commit | c4aec3101319f84363a57e09086c2aff6c60a3c3 (patch) | |
tree | 553031dcd815fc2059ecb467d611c23df4d565ef /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | vfio/pci: Expose shadow ROM as PCI option ROM (diff) | |
download | linux-dev-c4aec3101319f84363a57e09086c2aff6c60a3c3.tar.xz linux-dev-c4aec3101319f84363a57e09086c2aff6c60a3c3.zip |
vfio/pci: return -EFAULT if copy_to_user fails
The copy_to_user() function returns the number of bytes that were not
copied but we want to return -EFAULT on error here.
Fixes: 188ad9d6cbbc ('vfio/pci: Include sparse mmap capability for MSI-X table regions')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions