diff options
| author | Dan Carpenter <[email protected]> | 2017-01-07 06:27:49 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2017-01-11 19:06:35 +0000 |
| commit | 6ed0993a0b859ce62edf2930ded683e452286d39 (patch) | |
| tree | d887337ec8e4b492163467fc95ef5672d35160aa /lib/timerqueue.c | |
| parent | Linux 4.10-rc3 (diff) | |
| download | kernel-6ed0993a0b859ce62edf2930ded683e452286d39.tar.gz kernel-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 <[email protected]>
Reviewed-by: Kirti Wankhede <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
