]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix dereference null return value for the function amdgpu_vm_pt_parent
authorJesse Zhang <jesse.zhang@amd.com>
Thu, 23 May 2024 09:14:45 +0000 (17:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:09:41 +0000 (14:09 -0400)
commit511a623fb46a6cf578c61d4f2755783c48807c77
tree7f67a617033132fe604f4d4c2e8a21f09c038d9c
parentab47fa8358f73c25543e6bcfe98fa952c151666e
drm/amdgpu: fix dereference null return value for the function amdgpu_vm_pt_parent

The pointer parent may be NULLed by the function amdgpu_vm_pt_parent.
To make the code more robust, check the pointer parent.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Christian König <christian.koenig@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_pt.c