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

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

Merge "msm:camera:isp: vfe num input validation during reset"

parents 0f0c42ba 83143e18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1134,7 +1134,8 @@ static int msm_ispif_set_vfe_info(struct ispif_device *ispif,
	struct msm_ispif_vfe_info *vfe_info)
{
	memcpy(&ispif->vfe_info, vfe_info, sizeof(struct msm_ispif_vfe_info));

	if (ispif->vfe_info.num_vfe > ispif->hw_num_isps)
		return -EINVAL;
	return 0;
}