From 7d80129d957f6bddd01732a94e60408e30f4bb1b Mon Sep 17 00:00:00 2001 From: Sejun Park Date: Wed, 7 Mar 2018 14:26:57 +0900 Subject: [PATCH] fixed svace issue Change-Id: Ic5ee617ff7a40927f0361c878f48832ce92df310 --- exynos/libcsc/csc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exynos/libcsc/csc.c b/exynos/libcsc/csc.c index a55a011..39c0e0e 100644 --- a/exynos/libcsc/csc.c +++ b/exynos/libcsc/csc.c @@ -439,6 +439,7 @@ static CSC_ERRORCODE csc_init_hw( ALOGE("%s:: CSC_METHOD_HW can't open HW", __func__); free(csc_handle); csc_handle = NULL; + return CSC_ErrorNotInit; } } @@ -804,7 +805,10 @@ CSC_ERRORCODE csc_convert( if ((csc_handle->csc_method == CSC_METHOD_HW) && (csc_handle->csc_hw_handle == NULL)) - csc_init_hw(handle); + ret = csc_init_hw(handle); + + if (ret != CSC_ErrorNone) + return ret; csc_set_format(csc_handle); csc_set_buffer(csc_handle); -- 2.7.4