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

Commit e07ee11a authored by Brahmaji K's avatar Brahmaji K Committed by Gerrit - the friendly Code Review server
Browse files

qseecom: Initialize the hlos_ce_hw_instance array



Initialize the hlos_ce_hw_instance[] array otherwise
this can lead to assigning qseecom.ce_drv.instance
with garbage value in failure cases.

Change-Id: I5b8fb574468a6a09fcd0f7f1dc7caf11f31374a7
Signed-off-by: default avatarBrahmaji K <bkomma@codeaurora.org>
parent 635d0bf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7717,7 +7717,7 @@ static int qseecom_retrieve_ce_data(struct platform_device *pdev)
	uint32_t hlos_num_ce_hw_instances;
	uint32_t disk_encrypt_pipe;
	uint32_t file_encrypt_pipe;
	uint32_t hlos_ce_hw_instance[MAX_CE_PIPE_PAIR_PER_UNIT];
	uint32_t hlos_ce_hw_instance[MAX_CE_PIPE_PAIR_PER_UNIT] = {0};
	int i;
	const int *tbl;
	int size;