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=7de00a2f736267e5f61ccbdd52973f33f0f77b54;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git gud: fix mobicore initialization * backported from s9 Change-Id: I48476e899495490ded64a9e173e3daa3c4cdafa0 --- diff --git a/drivers/gud/gud-exynos8895_kinibi400/MobiCoreDriver/admin.c b/drivers/gud/gud-exynos8895_kinibi400/MobiCoreDriver/admin.c index 092e2aeba381..68b23ea806f4 100644 --- a/drivers/gud/gud-exynos8895_kinibi400/MobiCoreDriver/admin.c +++ b/drivers/gud/gud-exynos8895_kinibi400/MobiCoreDriver/admin.c @@ -903,7 +903,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) @@ -1070,10 +1069,9 @@ static int admin_open(struct inode *inode, struct file *file) return admin_ctx.last_start_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", admin_ctx.admin_tgid); + server_state_change(READY); return 0; }