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

Commit be3de2de authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: tfe: validate the tfe bw num paths" into camera-kernel.lnx.3.1

parents e3e2f34f d2591569
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3611,7 +3611,8 @@ static int cam_isp_tfe_packet_generic_blob_handler(void *user_data,
			return -EINVAL;
		}

		if (bw_config->num_paths > CAM_ISP_MAX_PER_PATH_VOTES) {
		if ((bw_config->num_paths > CAM_ISP_MAX_PER_PATH_VOTES) ||
			!bw_config->num_paths) {
			CAM_ERR(CAM_ISP, "Invalid num paths %d",
				bw_config->num_paths);
			return -EINVAL;