From 95f0e29530f05657538b851e123a375ad158e2e5 Mon Sep 17 00:00:00 2001 From: Brahmaji K Date: Fri, 5 May 2017 14:55:13 +0530 Subject: [PATCH] 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: Brahmaji K --- drivers/misc/qseecom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/qseecom.c b/drivers/misc/qseecom.c index 9855bee67627..ee5bafc1515e 100644 --- a/drivers/misc/qseecom.c +++ b/drivers/misc/qseecom.c @@ -7750,7 +7750,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;