From 37e6b4babe12a043c9c5fdfb0fabe7e897eee7b4 Mon Sep 17 00:00:00 2001 From: Ayoung Sim Date: Wed, 11 Jul 2018 14:23:44 +0900 Subject: [PATCH] [COMMON] media: mfc: fix the prevent issue CID(234025): Uninitialized pointer read Change-Id: I8d68381aef86831ea9196d59b414df5bbdce3332 Signed-off-by: Ayoung Sim --- drivers/media/platform/exynos/mfc/mfc_mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/exynos/mfc/mfc_mem.c b/drivers/media/platform/exynos/mfc/mfc_mem.c index a090ccfeda18..ab157a1855eb 100644 --- a/drivers/media/platform/exynos/mfc/mfc_mem.c +++ b/drivers/media/platform/exynos/mfc/mfc_mem.c @@ -102,6 +102,7 @@ int mfc_mem_ion_alloc(struct mfc_dev *dev, flag = ION_FLAG_PROTECTED; break; default: + heapname = "unknown"; mfc_err_ctx("not supported mfc mem type: %d, heapname: %s\n", special_buf->buftype, heapname); return -EINVAL; -- 2.20.1