drm/amdgpu/discovery: add additional validation
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Mar 2022 05:23:33 +0000 (01:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Apr 2022 21:47:33 +0000 (17:47 -0400)
commitf716113aacea122e44e7a28aa521318da65adc84
tree51ccc1de315fbcd6af3f3ca7c5d8178fa412e559
parent24681cb50bcbe09a4f8f609d35c350c7d246fe5e
drm/amdgpu/discovery: add additional validation

Check the table signatures and checksums and verify that
the tables exist before accessing them.

v2: disable MALL table for now

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