diff options
author | Dan Carpenter <error27@gmail.com> | 2022-12-08 19:01:26 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-12-13 00:10:12 +0300 |
commit | fe3dd71db2b81c202bc80532bbe0e07238a45ed9 (patch) | |
tree | c31e1f1ba6c8fe5181adb6532162dbc026b2f7c3 /io_uring/opdef.c | |
parent | d1f0f50fbbbbca1e3e8157e51934613bf88f6d44 (diff) | |
download | linux-fe3dd71db2b81c202bc80532bbe0e07238a45ed9.tar.xz |
vfio/mlx5: fix error code in mlx5vf_precopy_ioctl()
The copy_to_user() function returns the number of bytes remaining to
be copied but we want to return a negative error code here.
Fixes: 0dce165b1adf ("vfio/mlx5: Introduce vfio precopy ioctl implementation")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/Y5IKVknlf5Z5NPtU@kili
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'io_uring/opdef.c')
0 files changed, 0 insertions, 0 deletions