Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b979a51 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: sde: detect zero width/height in validate" into msm-4.9

parents 0e8b6431 4db1ea89
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2596,6 +2596,11 @@ static int sde_hw_rotator_validate_entry(struct sde_rot_mgr *mgr,
	}

	if ((src_w != dst_w) || (src_h != dst_h)) {
		if (!dst_w || !dst_h) {
			SDEROT_DBG("zero output width/height not support\n");
			ret = -EINVAL;
			goto dnsc_err;
		}
		if ((src_w % dst_w) || (src_h % dst_h)) {
			SDEROT_DBG("non integral scale not support\n");
			ret = -EINVAL;