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

!9212 drm/amd/display: Fix division by zero in setup_dsc_config

parents ab386249 49147f5e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -735,7 +735,12 @@ static bool setup_dsc_config(
	if (!is_dsc_possible)
		goto done;

	if (slice_height > 0) {
		dsc_cfg->num_slices_v = pic_height / slice_height;
	} else {
		is_dsc_possible = false;
		goto done;
	}

	// Final decission: can we do DSC or not?
	if (is_dsc_possible) {