ANDROID: GKI: Add initialization for mutex oem_data.
Although __mutex_init() already contains a hook, but this function may be called before the mutex_init hook is registered, causing mutex's oem_data to be uninitialized and causing unpredictable errors. Bug: 352181884 Change-Id: I04378d6668fb4e7b93c11d930ac46aae484fc835 Signed-off-by: zhujingpeng <zhujingpeng@vivo.com> (cherry picked from commit 96d66062d0767aeafb690ce014ec91785820d62b) (cherry picked from commit 4c213b2ea1f58bc640894684f65c92b6cdee522d)
This commit is contained in:
parent
b406bff5bd
commit
dacbe677af
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key)
|
||||||
#ifdef CONFIG_MUTEX_SPIN_ON_OWNER
|
#ifdef CONFIG_MUTEX_SPIN_ON_OWNER
|
||||||
osq_lock_init(&lock->osq);
|
osq_lock_init(&lock->osq);
|
||||||
#endif
|
#endif
|
||||||
|
android_init_oem_data(lock, 1);
|
||||||
|
|
||||||
debug_mutex_init(lock, name, key);
|
debug_mutex_init(lock, name, key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue