]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/userq: Use kvfree instead of kfree in amdgpu_userq_signal_ioctl
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 13 Mar 2026 07:06:46 +0000 (12:36 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:41:10 +0000 (10:41 -0400)
commite9405ce75e8e1c2a2281659bf395f8b18b94d786
treefadfbff35f893df251c3ac8ec1d45cad3c2d8929
parent6b340cccf1340da310ae01d267b0586e08a538c9
drm/amdgpu/userq: Use kvfree instead of kfree in amdgpu_userq_signal_ioctl

In function amdgpu_userq_signal_ioctl, drm_gem_objects_lookup allocates
memory via kvmalloc and hence when that memory is freed the memory
via kvfree.

Fixes: 4ca06f6fb45d ("drm/amdgpu/userq: Use drm_gem_objects_lookup in amdgpu_userq_signal_ioctl")
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c