diff options
author | Gavin Wan <Gavin.Wan@amd.com> | 2023-03-17 18:42:30 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 09:58:09 -0400 |
commit | b4520bfd801338c48d887f0eec74a53ab80f2167 (patch) | |
tree | 509570dc323244ec600d29fcb6d9fbf2333488e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | 46f7b4deb30558593c1d2e62d561a3cee21f558a (diff) |
drm/amdgpu: Checked if the pointer NULL before use it.
For SRIOV on some parts, the host driver does not post VBIOS. So the guest
cannot get bios information. Therefore, adev->virt.fw_reserve.p_pf2vf
and adev->mode_info.atom_context are NULL.
Signed-off-by: Gavin Wan <Gavin.Wan@amd.com>
Reviewed-by: Zhigang Luo <Zhigang.Luo@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions