]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Use (v)memdup_array_user in amdgpu_cs_pass1
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 12 Jun 2025 10:44:28 +0000 (11:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:51:45 +0000 (16:51 -0400)
commitd4b6274cbf0b0ee92294d699f138b63aa4796ad0
treec226d53f562a8dc9e815c9a661bf98b9100bfadd
parentdea75df7afe14d6217576dbc28cc3ec1d1f712fb
drm/amdgpu: Use (v)memdup_array_user in amdgpu_cs_pass1

Replace k(v)malloc_array() + copy_from_user() with (v)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