summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-08-18 15:09:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 12:07:30 +0300
commit8135d168d84cf6f9d244b001e59db0149c1b9d94 (patch)
treed9565f3bf1e6ff333b14f3146b8270315325b22d /tools/testing
parentc2f41d9b1d5373b7a8f22399474ab46828b2bab8 (diff)
downloadlinux-8135d168d84cf6f9d244b001e59db0149c1b9d94.tar.xz
drm/amd/display: fix potential integer overflow when shifting 32 bit variable bl_pwm
[ Upstream commit 1d5503331b12a76266049289747dfd94f1643fde ] The 32 bit unsigned integer bl_pwm is being shifted using 32 bit arithmetic and then being assigned to a 64 bit unsigned integer. There is a potential for a 32 bit overflow so cast bl_pwm to enforce a 64 bit shift operation to avoid this. Addresses-Coverity: ("unintentional integer overflow") Fixes: 3ba01817365c ("drm/amd/display: Move panel_cntl specific register from abm to panel_cntl.") 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 'tools/testing')
0 files changed, 0 insertions, 0 deletions