]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: Use kvfree instead of kfree in amdgpu_userq_wait_ioctl
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 13 Mar 2026 07:03:43 +0000 (12:33 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:36:23 +0000 (10:36 -0400)
commit087be0cd54f5e27a893222d9a4d4fc970bf31ccd
tree5336ae9e69d8885b5cf051dcd0039d0048651474
parent3d0b7f5da0bfd6b3725f21b893f068dc2959e57b
drm/amdgpu/userq: Use kvfree instead of kfree in amdgpu_userq_wait_ioctl

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

Fixes: 2de9353e193f ("drm/amdgpu/userq: Use drm_gem_objects_lookup in amdgpu_userq_wait_ioctl")
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c