diff options
| author | 2017-01-07 09:27:49 +0300 | |
|---|---|---|
| committer | 2017-01-11 12:06:35 -0700 | |
| commit | 6ed0993a0b859ce62edf2930ded683e452286d39 (patch) | |
| tree | d887337ec8e4b492163467fc95ef5672d35160aa /tools/perf/scripts/python/futex-contention.py | |
| parent | Linux 4.10-rc3 (diff) | |
| download | wireguard-linux-6ed0993a0b859ce62edf2930ded683e452286d39.tar.xz wireguard-linux-6ed0993a0b859ce62edf2930ded683e452286d39.zip | |
vfio-mdev: return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes which it wasn't
able to copy but we want to return a negative error code.
Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
