]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Fix possible null pointer dereference
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 31 Oct 2023 17:30:00 +0000 (13:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:18 +0000 (17:15 +0000)
commitf3385c9b8ed4e4f37b9c382874e765b4c072ff93
treeba098ee15a4e23ae15ae324e2a69b38db2e36f1e
parented8fc80b195031f2c4418675c467c20c2f97773e
drm/amdgpu: Fix possible null pointer dereference

commit 256503071c2de2b5b5c20e06654aa9a44f13aa62 upstream.

mem = bo->tbo.resource may be NULL in amdgpu_vm_bo_update.

Fixes: 180253782038 ("drm/ttm: stop allocating dummy resources during BO creation")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c