Commit 18b85e98 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher

drm/amd/display: fix a divide by zero error

[Why&How]

Incorrect variable was being checked for zero condition.
Reviewed-by: default avatarAlvin Lee <alvin.lee2@amd.com>
Acked-by: default avatarJasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 047783cd
...@@ -278,7 +278,7 @@ void dcn32_determine_det_override(struct dc *dc, ...@@ -278,7 +278,7 @@ void dcn32_determine_det_override(struct dc *dc,
} }
} }
if (context->stream_count > 0) { if (stream_count > 0) {
stream_segments = 18 / stream_count; stream_segments = 18 / stream_count;
for (i = 0; i < context->stream_count; i++) { for (i = 0; i < context->stream_count; i++) {
if (context->streams[i]->mall_stream_config.type == SUBVP_PHANTOM) if (context->streams[i]->mall_stream_config.type == SUBVP_PHANTOM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment