From 20d03805941c75a4489ec2e7ce5a3c021bde09f0 Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Mon, 22 Jul 2013 17:09:35 -0700 Subject: [PATCH] Fix AppOsManager missing mutex unlock. Need unlock the mutex after finish the getToken operation. Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1 --- libs/binder/AppOpsManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/binder/AppOpsManager.cpp b/libs/binder/AppOpsManager.cpp index 99c27476c..61b4f7d66 100644 --- a/libs/binder/AppOpsManager.cpp +++ b/libs/binder/AppOpsManager.cpp @@ -31,6 +31,7 @@ static const sp& getToken(const sp& service) { if (gToken == NULL) { gToken = service->getToken(new BBinder()); } + pthread_mutex_unlock(&gTokenMutex); return gToken; }