mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
drm/amd/display: fix a divide by zero error
[Why&How] Incorrect variable was being checked for zero condition. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Acked-by: Jasdeep Dhillon <jdhillon@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
047783cdd5
commit
18b85e98e1
|
|
@ -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;
|
||||
for (i = 0; i < context->stream_count; i++) {
|
||||
if (context->streams[i]->mall_stream_config.type == SUBVP_PHANTOM)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user