Merge "hal: Fix for adev_open causing hang"

This commit is contained in:
Linux Build Service Account 2013-12-19 15:54:25 -08:00 committed by Gerrit - the friendly Code Review server
commit 4d456e42cd
1 changed files with 1 additions and 0 deletions

View File

@ -2593,6 +2593,7 @@ static int adev_open(const hw_module_t *module, const char *name,
free(adev);
ALOGE("%s: Failed to init platform data, aborting.", __func__);
*device = NULL;
pthread_mutex_unlock(&adev_init_lock);
return -EINVAL;
}