commit | 0445e2ae13078ac8433f71c32080fe33182f0230 | [log] [tgz] |
---|---|---|
author | Miao Wang <[email protected]> | Wed May 17 16:19:40 2017 -0700 |
committer | Miao Wang <[email protected]> | Wed May 17 16:19:40 2017 -0700 |
tree | 54e498c3e69af57ca6a45d314d0b6fdc78c54b4d | |
parent | dbb105297acdd342e4c3f2178c624a17ccbfe243 [diff] [blame] |
Release mutex_lock if mIO.init failed during ContextCreate. Bug: 38355404 Test: mm and boot sailfish Change-Id: I0c5b2dfd6572edeccd929db0edc8b51e854896f0
diff --git a/rsContext.cpp b/rsContext.cpp index cc6f6de..f6686a9 100644 --- a/rsContext.cpp +++ b/rsContext.cpp
@@ -491,6 +491,7 @@ if (!mIO.init()) { ALOGE("Failed initializing IO Fifo"); + pthread_mutex_unlock(&gInitMutex); return false; } mIO.setTimeoutCallback(printWatchdogInfo, this, 2e9);