[COMMON] media: mfc: fix the prevent issue
authorAyoung Sim <a.sim@samsung.com>
Wed, 11 Jul 2018 05:23:44 +0000 (14:23 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 06:19:04 +0000 (15:19 +0900)
CID(234025): Uninitialized pointer read

Change-Id: I8d68381aef86831ea9196d59b414df5bbdce3332
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
drivers/media/platform/exynos/mfc/mfc_mem.c

index a090ccfeda18b3e0b957aab19577ebdbbdcf0411..ab157a1855eb442ac7edd9b8db2baeb028147052 100644 (file)
@@ -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;