]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 11:18:16 +0000 (13:18 +0200)
commita1589abd7c4ae154ccb27da53437f9f94a3baa2a
treebac8b019281f0985f54064bdefc8f3bdc3d0c050
parentfd334cfd8412f933651e8db80c08f2dab297b880
drm/amdgpu: Handle null atom context in VBIOS info ioctl

[ Upstream commit 5e7e82254270c8cf8b107451c5de01cee2f135ae ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c