From: Stricted Date: Wed, 28 Aug 2019 15:26:26 +0000 (+0000) Subject: gud: fix mobicore initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eaa2b7b66bcf2696a9c80be1d503bbd25cb2dcf5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gud: fix mobicore initialization * backported from s9 Change-Id: I48476e899495490ded64a9e173e3daa3c4cdafa0 --- diff --git a/drivers/gud/gud-exynos9610/MobiCoreDriver/admin.c b/drivers/gud/gud-exynos9610/MobiCoreDriver/admin.c index 2ead5ee60ad7..31b35a2995e9 100755 --- a/drivers/gud/gud-exynos9610/MobiCoreDriver/admin.c +++ b/drivers/gud/gud-exynos9610/MobiCoreDriver/admin.c @@ -951,7 +951,6 @@ static long admin_ioctl(struct file *file, unsigned int cmd, } /* Block until a request is available */ - server_state_change(READY); ret = wait_for_completion_interruptible( &g_request.client_complete); if (ret) @@ -1128,10 +1127,9 @@ static int admin_open(struct inode *inode, struct file *file) return l_ctx.last_tee_ret; } - reinit_completion_local(&g_request.client_complete); - reinit_completion_local(&g_request.server_complete); /* Requests from driver to daemon */ mc_dev_info("daemon connection open, TGID %d", l_ctx.admin_tgid); + server_state_change(READY); return 0; }