]> git.baikalelectronics.ru Git - kernel.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)
commit04f957d69769e0f20f5d54ae1c6c9e72a5fccb26
treea39306c67883e18e075c9291c9c660ee6ba840f2
parent97fe96e5718e6404c0b74cafddd1c76e8b4fe39e
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