]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix copy-n-paste error on vddci_buf index
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Nov 2017 11:35:00 +0000 (11:35 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Nov 2017 23:12:19 +0000 (18:12 -0500)
commit5cbd8a94dd8d00189ac97fc59eac541b74647f81
tree6d0c5e0b684c1587d9d9fc3d8556b7bef70f3f64
parentc0d2a2a85b1e0b241a7991cd65b0b15803a9b4e4
drm/amd/powerplay: fix copy-n-paste error on vddci_buf index

The index to vddci_buf is using profile->ucElbVDDC_Num rather
than profile->ucElbVDDCI_Num; this looks like a copy-n-paste
error from previous code for the vddc_buf array and I'm pretty
sure this is incorrect. Fix this by using the correct variable.

Detected by CoverityScan, CID#1457172 ("Copy-paste error")

Fixes: 0ad67cc614ff ("drm/amd/powerplay: Add support functions for CI to ppatomctrl.c")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c