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 21:22:32 +0000 (17:22 -0400)
commit86f2ec2265358fb1d7b76c7ffb86af6e04118388
treecbf79abf31f0d97f85e721be9e3716cfa0514407
parentffde72107be547d71f8074afd4f1ef1252073f3b
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