aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-10-23 11:34:50 +0000
committerAlex Williamson <[email protected]>2020-11-02 22:00:06 +0000
commit09699e56dee946a16767021af97411ed6f4b3e6b (patch)
tree48550a0d839441495ef35d09a395f2dc009f8946 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentvfio/type1: Use the new helper to find vfio_group (diff)
downloadkernel-09699e56dee946a16767021af97411ed6f4b3e6b.tar.gz
kernel-09699e56dee946a16767021af97411ed6f4b3e6b.zip
vfio/fsl-mc: return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes remaining to be copied, but this code should return -EFAULT. Fixes: df747bcd5b21 ("vfio/fsl-mc: Implement VFIO_DEVICE_GET_REGION_INFO ioctl call") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Diana Craciun <[email protected]> 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