drm/radeon/dpm: off by one in si_set_mc_special_registers()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 28 Sep 2013 09:35:31 +0000 (12:35 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Oct 2013 21:13:48 +0000 (17:13 -0400)
commit5fd9c581862a4874c0bdaf16231d8873832bbb99
tree41a83e11f3a26c9cb6838604b6a2eb2766f575ce
parent96d8df846f52a720c8ae1fadadfad7c9e733e336
drm/radeon/dpm: off by one in si_set_mc_special_registers()

These checks should be ">=" instead of ">".  j is used as an offset into
the table->mc_reg_address[] array and that has
SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE (16) elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/si_dpm.c