]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/discovery: validate VCN and SDMA instances
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2022 18:12:33 +0000 (14:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:33 +0000 (14:56 -0400)
commit50e84d179469b3345a619d6d2602c985ec112167
treeeaec551db400ad6c6295d9939bd11515abbdd21f
parent940a4a4e01ce6eb307c27e2d7f68316a1564fcf2
drm/amdgpu/discovery: validate VCN and SDMA instances

Validate the VCN and SDMA instances against the driver
structure sizes to make sure we don't get into a
situation where the firmware reports more instances than
the driver supports.

Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c