summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorGavin Wan <Gavin.Wan@amd.com>2023-03-17 18:42:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 09:58:09 -0400
commitb4520bfd801338c48d887f0eec74a53ab80f2167 (patch)
tree509570dc323244ec600d29fcb6d9fbf2333488e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parent46f7b4deb30558593c1d2e62d561a3cee21f558a (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