drm/amdgpu: fix parsing indirect register list v2
authorEvan Quan <evan.quan@amd.com>
Tue, 29 May 2018 08:31:05 +0000 (16:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:24 +0000 (13:45 -0500)
commitcb5ed37f1f9976a5f9d5f677ac9423642e30d10f
treea77c32929aa5e512e3237877c199693c22a12f7e
parentb0f6b8090e05a24263207a399b6c48a94034f1e8
drm/amdgpu: fix parsing indirect register list v2

WARN_ON possible buffer overflow and avoid unnecessary dereference.

v2: change BUG_ON to WARN_ON

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c