]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Replace kzalloc + copy_from_user with memdup_user
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 8 Sep 2025 21:15:54 +0000 (23:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:51:53 +0000 (16:51 -0400)
commit99eeb8358e6cdb7050bf2956370c15dcceda8c7e
tree1aa48cebc6f016541dd7f7a9ee5748cc619facc9
parent6156c101e5f082ee8911fbf0e112319d67403794
drm/amdgpu: Replace kzalloc + copy_from_user with memdup_user

Replace kzalloc() followed by copy_from_user() with memdup_user() to
improve and simplify ta_if_load_debugfs_write() and
ta_if_invoke_debugfs_write().

No functional changes intended.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c