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

Commit 730718d6 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: Initialize size field in ICP handles



Initialize size field in abort and destroy ICP handles.

Change-Id: I6a3abb1bb0dbe15592e8ead1f2527f7790aa2220
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 83d8dc0c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -662,7 +662,7 @@ static int cam_icp_mgr_abort_handle(
		return rc;
	}


	abort_cmd->size = packet_size;
	abort_cmd->pkt_type = HFI_CMD_IPEBPS_ASYNC_COMMAND_DIRECT;
	if (ctx_data->icp_dev_acquire_info->dev_type == CAM_ICP_RES_TYPE_BPS)
		abort_cmd->opcode = HFI_IPEBPS_CMD_OPCODE_BPS_ABORT;
@@ -727,6 +727,7 @@ static int cam_icp_mgr_destroy_handle(
		return rc;
	}

	destroy_cmd->size = packet_size;
	destroy_cmd->pkt_type = HFI_CMD_IPEBPS_ASYNC_COMMAND_DIRECT;
	if (ctx_data->icp_dev_acquire_info->dev_type == CAM_ICP_RES_TYPE_BPS)
		destroy_cmd->opcode = HFI_IPEBPS_CMD_OPCODE_BPS_DESTROY;