OSDN Git Service

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)
commit5039f5298880f7a1665d13a24a342d2934d5aa61
tree2ef7ae68c6248a9948c444c734ca899fb9cb2fa1
parent0069a2273837f199cb93d539a64daeba072a5a2a
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