drm/amdgpu: Handle null atom context in VBIOS info ioctl
authorDavid Francis <David.Francis@amd.com>
Tue, 5 Sep 2023 14:13:51 +0000 (10:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Sep 2023 22:25:26 +0000 (18:25 -0400)
commit5e7e82254270c8cf8b107451c5de01cee2f135ae
tree77f970278554408454735b0d35196a3538af3708
parent9296da8c40900b4dae3d973aa22be306e2a77671
drm/amdgpu: Handle null atom context in VBIOS info ioctl

On some APU systems, there is no atom context and so the
atom_context struct is null.

Add a check to the VBIOS_INFO branch of amdgpu_info_ioctl
to handle this case, returning all zeroes.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c