diff options
| author | Colin Ian King <[email protected]> | 2020-08-18 12:09:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-18 22:22:43 +0000 |
| commit | 1d5503331b12a76266049289747dfd94f1643fde (patch) | |
| tree | 57d73c306657212417f0978e1c0e59211f816bfc /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amdgpu/pm: only hide average power on SI and pre-RENOIR APUs (diff) | |
| download | kernel-1d5503331b12a76266049289747dfd94f1643fde.tar.gz kernel-1d5503331b12a76266049289747dfd94f1643fde.zip | |
drm/amd/display: fix potential integer overflow when shifting 32 bit variable bl_pwm
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
