]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Validate ip discovery blob
authorErnst Sjöstrand <ernstp@gmail.com>
Sun, 26 Sep 2021 21:27:19 +0000 (23:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Sep 2021 21:30:00 +0000 (17:30 -0400)
commitb4b34ecd3e029410b281e3ea585a18491386d8c7
tree2ef7ae68c6248a9948c444c734ca899fb9cb2fa1
parentc449ef7723cb7251e771314a6f6fd25462210d6c
drm/amd/amdgpu: Validate ip discovery blob

We use the number_instance index that we get from the fw discovery blob
to index into an array for example.

Update error messages (Alex)

Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c