Unverified Commit ec389320 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11655 drm/amd/display: Check denominator pbn_div before used

parents e9248758 f04e1831
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6934,7 +6934,7 @@ static int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_state *state,
			}
		}

		if (j == dc_state->stream_count)
		if (j == dc_state->stream_count || pbn_div == 0)
			continue;

		slot_num = DIV_ROUND_UP(pbn, pbn_div);