aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-08 23:31:56 +0200
committerAlex Deucher <alexander.deucher@amd.com>2025-09-15 16:51:48 -0400
commit6156c101e5f082ee8911fbf0e112319d67403794 (patch)
tree10e2d50a27ff358822abf383201cd3a71ca51e1e /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parentdrm/amdgpu: Use (v)memdup_array_user in amdgpu_cs_pass1 (diff)
downloadlinux-6156c101e5f082ee8911fbf0e112319d67403794.tar.gz
linux-6156c101e5f082ee8911fbf0e112319d67403794.zip
drm/amdkfd: Replace kzalloc + copy_from_user with memdup_user
Replace kzalloc() followed by copy_from_user() with memdup_user() to improve and simplify kfd_ioctl_set_cu_mask(). Return early if an error occurs and remove the obsolete 'out' label. No functional changes intended. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions