mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-24 20:42:49 -05:00
drm/amd/display: Wrong index type for pipe iterator
[Why and How] Type mismatch in index and pipe count might cause an infinite loop. code Change should resolve this issue. Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Saaem Rizvi <syedsaaem.rizvi@amd.com> Reviewed-by: Josip Pavic <Josip.Pavic@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
0baae62463
commit
490ddccb84
@@ -392,7 +392,7 @@ void dcn314_set_pixels_per_cycle(struct pipe_ctx *pipe_ctx)
|
||||
|
||||
void dcn314_resync_fifo_dccg_dio(struct dce_hwseq *hws, struct dc *dc, struct dc_state *context)
|
||||
{
|
||||
uint8_t i;
|
||||
unsigned int i;
|
||||
struct pipe_ctx *pipe = NULL;
|
||||
bool otg_disabled[MAX_PIPES] = {false};
|
||||
|
||||
|
||||
@@ -1201,7 +1201,7 @@ void dcn32_set_pixels_per_cycle(struct pipe_ctx *pipe_ctx)
|
||||
|
||||
void dcn32_resync_fifo_dccg_dio(struct dce_hwseq *hws, struct dc *dc, struct dc_state *context)
|
||||
{
|
||||
uint8_t i;
|
||||
unsigned int i;
|
||||
struct pipe_ctx *pipe = NULL;
|
||||
bool otg_disabled[MAX_PIPES] = {false};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user