From: dan huh Date: Mon, 9 Jul 2018 02:05:46 +0000 (+0900) Subject: [COMMON] fimc-is2: Modify a vra kthread_stop error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78427373a0ccd6cf7fb28ef91f52cd4d5d7ee681;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);