summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepak Kushwah <dkushwah@codeaurora.org>2017-03-07 10:48:45 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-19 23:00:35 -0700
commitf7ae08fa56d222e635fc5c5fa484a03641b0644e (patch)
tree94e9334274c9be2f3786f7f0ec0251034cd4565c
parentf39a5999e2473e890390e3a5aa794a2fd4256544 (diff)
msm vidc: Initialise array elements
Array elements needs to be initialised as the elements are not initialised by default and may contain junk data which will lead to unexpected behaviour. Change-Id: Ifecb8065b09afcbf11a9dcfbf230403afcdb225d CRs-Fixed: 2015789 Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/vidc/venus_hfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/vidc/venus_hfi.c b/drivers/media/platform/msm/vidc/venus_hfi.c
index 4739fc999c82..bc72c4a56c91 100644
--- a/drivers/media/platform/msm/vidc/venus_hfi.c
+++ b/drivers/media/platform/msm/vidc/venus_hfi.c
@@ -4472,7 +4472,7 @@ static int venus_hfi_get_fw_info(void *dev, struct hal_fw_info *fw_info)
struct venus_hfi_device *device = dev;
u32 smem_block_size = 0;
u8 *smem_table_ptr;
- char version[VENUS_VERSION_LENGTH];
+ char version[VENUS_VERSION_LENGTH] = "";
const u32 smem_image_index_venus = 14 * 128;
if (!device || !fw_info) {