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

Commit f827bd46 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: reqmgr: Validate num links in link control"

parents cccaa90d 40b1e35d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2779,7 +2779,8 @@ int cam_req_mgr_link_control(struct cam_req_mgr_link_control *control)
		goto end;
	}

	if (control->num_links > MAX_LINKS_PER_SESSION) {
	if ((control->num_links <= 0) ||
		(control->num_links > MAX_LINKS_PER_SESSION)) {
		CAM_ERR(CAM_CRM, "Invalid number of links %d",
			control->num_links);
		rc = -EINVAL;