Files
linux/drivers/gpu/drm/radeon
Colin Ian King e8472f095b drm/radeon: fix array out-of-bounds read and write issues
[ Upstream commit 7ee78aff9d ]

There is an off-by-one bounds check on the index into arrays
table->mc_reg_address and table->mc_reg_table_entry[k].mc_data[j] that
can lead to reads and writes outside of arrays. Fix the bound checking
off-by-one error.

Addresses-Coverity: ("Out-of-bounds read/write")
Fixes: cc8dbbb4f6 ("drm/radeon: add dpm support for CI dGPUs (v2)")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 08:46:25 +09:00
..
2016-03-16 18:08:06 -04:00
2015-05-26 15:09:03 +02:00
2016-03-16 18:08:06 -04:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2015-12-02 12:45:54 -05:00
2016-05-16 10:25:13 -04:00
2013-09-11 11:44:38 -04:00
2013-09-11 11:44:38 -04:00
2015-12-02 12:45:54 -05:00
2014-03-06 16:46:56 -05:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2015-11-30 14:44:34 -05:00
2016-05-18 19:16:24 +02:00
2015-12-02 12:45:54 -05:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00