aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-12-08 16:01:26 +0000
committerAlex Williamson <[email protected]>2022-12-12 21:10:12 +0000
commitfe3dd71db2b81c202bc80532bbe0e07238a45ed9 (patch)
treec31e1f1ba6c8fe5181adb6532162dbc026b2f7c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentsamples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe() (diff)
downloadkernel-fe3dd71db2b81c202bc80532bbe0e07238a45ed9.tar.gz
kernel-fe3dd71db2b81c202bc80532bbe0e07238a45ed9.zip
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 <[email protected]> Reviewed-by: Yishai Hadas <[email protected]> Link: https://lore.kernel.org/r/Y5IKVknlf5Z5NPtU@kili Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions