diff options
author | Christian König <christian.koenig@amd.com> | 2017-07-26 17:02:52 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:45:53 -0400 |
commit | 7ecc245a8ce32ffcaa6a3e5795e0b14db8e076fc (patch) | |
tree | 204ca80c53ffa1f78696857021c5c65bc166792a /drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |
parent | f5e1c740afb6fec8969234a066b1628246a6a08d (diff) | |
download | op-kernel-dev-7ecc245a8ce32ffcaa6a3e5795e0b14db8e076fc.zip op-kernel-dev-7ecc245a8ce32ffcaa6a3e5795e0b14db8e076fc.tar.gz |
drm/amdgpu: consistent use u64_to_user_ptr
Instead of open coding the conversion from u64 to pointers.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index d324e1c..ccd7697 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c @@ -270,7 +270,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data, struct amdgpu_fpriv *fpriv = filp->driver_priv; union drm_amdgpu_bo_list *args = data; uint32_t handle = args->in.list_handle; - const void __user *uptr = (const void*)(uintptr_t)args->in.bo_info_ptr; + const void __user *uptr = u64_to_user_ptr(args->in.bo_info_ptr); struct drm_amdgpu_bo_list_entry *info; struct amdgpu_bo_list *list; |