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

Commit 81027e25 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: reqmgr: Validate num links in link control"

parents 43d508e4 52aed61a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2933,7 +2933,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;