diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-06-02 19:11:01 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-06-09 10:49:15 -0400 |
commit | d2e312183b62cde0c44af35664f3b104b247dd9c (patch) | |
tree | f171ca9d4423b64a76e0ce91cb90de5c227267a8 /drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | |
parent | 5bbc16cc7be89dbe6dd824570456c3340b6d2ef7 (diff) | |
download | op-kernel-dev-d2e312183b62cde0c44af35664f3b104b247dd9c.zip op-kernel-dev-d2e312183b62cde0c44af35664f3b104b247dd9c.tar.gz |
drm/amd/powerplay: fix bug visit array out of bounds
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c index 910d56d..20f20e0 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c @@ -469,7 +469,7 @@ uint16_t phm_find_closest_vddci(struct pp_atomctrl_voltage_table *vddci_table, u PP_ASSERT_WITH_CODE(false, "VDDCI is larger than max VDDCI in VDDCI Voltage Table!", - return vddci_table->entries[i].value); + return vddci_table->entries[i-1].value); } int phm_find_boot_level(void *table, |