]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: fix potential NULL pointer when check_atom_bios() fails
authorJiawei Gu <Jiawei.Gu@amd.com>
Wed, 23 Dec 2020 05:54:57 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:32:30 +0000 (11:32 -0500)
commit35c3c89a859257833333396c458b5b087a5b8ed3
treea39306c67883e18e075c9291c9c660ee6ba840f2
parenta11d9ff3ebe05d6c9412eaa06a7398e3729749ff
drm/amdgpu: fix potential NULL pointer when check_atom_bios() fails

Asic funcs pointer needs being checked whether is NULL. Because when
check_atom_bios() fails in req_init_data handshake, asic funcs pointer
is not initialized yet.

Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c