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

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

Merge "msm: camera: ife: validate the ife bw num paths" into camera-kernel.lnx.1.0

parents 30a0bf80 5f81e5f1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5522,7 +5522,8 @@ static int cam_isp_packet_generic_blob_handler(void *user_data,

		bw_config = (struct cam_isp_bw_config_v2 *)blob_data;

		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;