linux/drivers/gpu/drm/amd/display/dc/dce110
Gustavo A. R. Silva fe78627d43 drm/amd/display: fix type of variable
Currently, the maximum value that *counter* can reach is 255, and
code at line 150: while (counter < 1000) { implies a bigger value
could be expected.

Fix this by changing the type of variable *counter* from uint8_t
to uint16_t.

Addresses-Coverity-ID: 1470030 ("Operands don't affect result")
Fixes: 2b6199a1d1 ("drm/amd/display: replace msleep with udelay in fbc path")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-06-15 11:47:15 -05:00
..
dce110_compressor.c drm/amd/display: fix type of variable 2018-06-15 11:47:15 -05:00
dce110_compressor.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_hw_sequencer.c drm/amd/display: add register offset != 0 check. 2018-05-29 13:23:36 -05:00
dce110_hw_sequencer.h drm/amd/display: remove unused function prototypes 2018-02-19 14:19:29 -05:00
dce110_mem_input_v.c drm/amd/display: Implementing new bandwidth registers for DCE120 2018-04-11 13:07:40 -05:00
dce110_mem_input_v.h drm/amd/display: dce 8 - 12 mem_input refactor to new style 2017-09-26 18:07:12 -04:00
dce110_opp_csc_v.c amdgpu/dc: Fix enum mismatch in calls to program_color_matrix() 2018-02-19 14:19:44 -05:00
dce110_opp_regamma_v.c drm/amd/display: Remove extra arr_points element 2017-12-06 12:47:36 -05:00
dce110_opp_v.c amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_opp_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_resource.c drm/amd/display: drop dc_validate_guaranteed 2018-04-11 13:07:40 -05:00
dce110_resource.h amdgpu/dc: remove pointless return from build_pipe_hw_param 2017-09-29 13:02:41 -04:00
dce110_timing_generator_v.c drm/amd/display: remove dummy is_blanked() to optimise boot time 2018-05-15 13:43:07 -05:00
dce110_timing_generator_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_timing_generator.c drm/amd/display: Program v_total_min/max after v_total_cntl 2018-04-11 13:08:03 -05:00
dce110_timing_generator.h drm/amd/display: Expose DCE110 CRC functions for DCE8 2018-02-19 14:20:10 -05:00
dce110_transform_v.c drm/amd/display: get rid of 32.32 unsigned fixed point 2018-05-18 16:08:21 -05:00
dce110_transform_v.h amdgpu/dc: make program_regamma_pwl return void 2017-09-29 13:02:08 -04:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00