]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: validate the parameters of bo mapping operations more clearly
authorxinhui pan <xinhui.pan@amd.com>
Thu, 11 Apr 2024 03:11:38 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 15:50:43 +0000 (11:50 -0400)
commit6fef2d4c00b5b8561ad68dd2b68173f5c6af1e75
tree8db616fe35e1c26b1247755ddd24cef66425dae6
parent91f10a3d21f2313485178d49efef8a3ba02bd8c7
drm/amdgpu: validate the parameters of bo mapping operations more clearly

Verify the parameters of
amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place.

Fixes: dc54d3d1744d ("drm/amdgpu: implement AMDGPU_VA_OP_CLEAR v2")
Cc: stable@vger.kernel.org
Reported-by: Vlad Stolyarov <hexed@google.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.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_vm.c