]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Use memdup_array_user in amdgpu_cs_wait_fences_ioctl
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 12 Jun 2025 10:44:27 +0000 (11:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:51:40 +0000 (16:51 -0400)
commitdea75df7afe14d6217576dbc28cc3ec1d1f712fb
tree58fefcd3d3ef36bb62d3090ec5742ad5607c8b61
parentc4ac100e9ae252b09986766ad23b1f83ca3a369d
drm/amdgpu: Use memdup_array_user in amdgpu_cs_wait_fences_ioctl

Replace kmalloc_array() + copy_from_user() with memdup_array_user().

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_cs.c