From 78427373a0ccd6cf7fb28ef91f52cd4d5d7ee681 Mon Sep 17 00:00:00 2001 From: dan huh Date: Mon, 9 Jul 2018 11:05:46 +0900 Subject: [PATCH] [COMMON] fimc-is2: Modify a vra kthread_stop error handling - kthread_stop check has to success to kthread_run - when kthread_run fail, don't has to kthread_stop PR JIRA ID: CPR-44 Change-Id: Ia9e46173971853f2709cbd39d2345e11fcc9d242 Signed-off-by: dan huh --- .../platform/exynos/fimc-is2/interface/fimc-is-interface-vra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-vra.c b/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-vra.c index bd07be96f439..28809ef0d2b2 100644 --- a/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-vra.c +++ b/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-vra.c @@ -1007,7 +1007,7 @@ int fimc_is_lib_vra_frame_work_final(struct fimc_is_lib_vra *lib_vra) return ret; } - if (lib_vra->task_vra.task != NULL) { + if (!IS_ERR_OR_NULL(lib_vra->task_vra.task)) { ret = kthread_stop(lib_vra->task_vra.task); if (ret) err_lib("kthread_stop fail (%d)", ret); -- 2.20.1