]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:11:42 +0000 (17:11 +0200)
commitef13eeca7c79136bc38e21eb67322c1cbd5c40ee
tree03ca8aac538dc51d000c5d30a62bae2aa76f805a
parent885d4c31a4324da6d93b2143d5a02fa7ec1cd4db
drm/amdgpu: validate the parameters of bo mapping operations more clearly

commit 6fef2d4c00b5b8561ad68dd2b68173f5c6af1e75 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c