]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 12 Jun 2025 10:44:26 +0000 (11:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:51:34 +0000 (16:51 -0400)
commitc4ac100e9ae252b09986766ad23b1f83ca3a369d
tree5867d8f7a3600ba7e58a06e09d7581202e959e37
parent65307484851980aaa965e35d84ab7cb195308f2c
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array

Replace kvmalloc_array() + copy_from_user() with vmemdup_array_user() on
the fast path.

This shrinks the source code and improves separation between the kernel
and userspace slabs.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c