summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-24 13:07:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 10:53:01 +0200
commit9453039ae0dca376d89eb396d92a3f7333c1e3b5 (patch)
tree7e379623a600c0a41ed8d76d3f739c59a8913844 /include/linux
parent48da5e63f53f781876454e90368d661af4b84bbf (diff)
drm/radeon: fix array out-of-bounds read and write issues
[ Upstream commit 7ee78aff9de13d5dccba133f4a0de5367194b243 ] 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: cc8dbbb4f62a ("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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions