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

Commit f14cbbfb authored by Pavan Kumar Chilamkurthi's avatar Pavan Kumar Chilamkurthi
Browse files

msm: camera: icp: Fix incrementing array index in prepare args



Increment the index values while prepare args. Without
increment we save all the fence handles into 0 index always
and this overrides previous handles in that index.

Change-Id: I39dfb77cab942042c03059ac2047c4856c5f4fb3
Signed-off-by: default avatarPavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
parent 01b1b350
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1215,7 +1215,8 @@ static int cam_icp_mgr_process_io_cfg(struct cam_icp_hw_mgr *hw_mgr,
			continue;
		}

		prepare_args->out_map_entries[j].sync_id = io_cfg_ptr[i].fence;
		prepare_args->out_map_entries[j++].sync_id =
			io_cfg_ptr[i].fence;
		prepare_args->num_out_map_entries++;
		ICP_DBG(" out fence = %x index = %d\n", io_cfg_ptr[i].fence, i);
	}