]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Oct 2013 17:54:58 +0000 (10:54 -0700)
commit18696c0ee4e595627a8035def695ca338f03a1f9
tree56f082b35eccaf30b48ca724da655c6cc2032af4
parentb38b7659dabd2b931a5eebde9868c2a7416ad3e8
drm/radeon/dpm: off by one in si_set_mc_special_registers()

commit 5fd9c581862a4874c0bdaf16231d8873832bbb99 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/si_dpm.c