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

Commit 527b9a94 authored by Shivaraj Shetty's avatar Shivaraj Shetty Committed by Ian Maund
Browse files

msm: mdss: update parameter validation for partial update



Update the parameter check to confirm that width and
height are non zero for partial update.

Change-Id: I1359f953988c2b2414de47d95f5c3e9875bf3977
Signed-off-by: default avatarShivaraj Shetty <shivaraj@codeaurora.org>
parent dff13e51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1066,7 +1066,8 @@ bool update_roi(struct mdp3_rect oldROI, struct mdp_rect newROI)

bool is_roi_valid(struct mdp3_dma_source source_config, struct mdp_rect roi)
{
	return  ((roi.x >= source_config.x) &&
	return  ((roi.w > 0) && (roi.h > 0) &&
		(roi.x >= source_config.x) &&
		((roi.x + roi.w) <= source_config.width) &&
		(roi.y >= source_config.y) &&
		((roi.y + roi.h) <= source_config.height));