drm/amd/powerplay: Fix an off by one in navi10_get_smu_msg_index()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Aug 2019 13:20:12 +0000 (16:20 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Aug 2019 13:16:08 +0000 (08:16 -0500)
commit5556b9fed171bbfb53b08b56aef65201fcc4b4b1
tree57265b319553cd40b7b5fb4e248e475ae89c2a0f
parented8a5fb2a606b6dfc6e417da6e64efcbb899e4cc
drm/amd/powerplay: Fix an off by one in navi10_get_smu_msg_index()

The navi10_message_map[] array has SMU_MSG_MAX_COUNT elements so the ">"
has to be changed to ">=" to prevent reading one element beyond the end
of the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c