From: Ayoung Sim Date: Wed, 11 Jul 2018 05:23:44 +0000 (+0900) Subject: [COMMON] media: mfc: fix the prevent issue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37e6b4babe12a043c9c5fdfb0fabe7e897eee7b4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: mfc: fix the prevent issue CID(234025): Uninitialized pointer read Change-Id: I8d68381aef86831ea9196d59b414df5bbdce3332 Signed-off-by: Ayoung Sim --- 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;