commit | c5fe531d39d322f07868c0ac39090d637e6c4ecf | [log] [tgz] |
---|---|---|
author | Harold Tan <quic_harotan@quicinc.com> | Wed May 25 17:14:50 2022 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Aug 01 22:48:55 2022 -0700 |
tree | 4885c33486a71f0bde6adba52d15d81bf8c6b440 | |
parent | 70e5c81ec2f78b00f915fd1c281222eff81e0d09 [diff] |
agm: add mutex lock for agm_session_register_cb() The current implementation allows different processes to enter the function and manipulate with the data inside; race condition can occur. Adding mutex lock to regard from the beginning to the returns as critical section so as to resolve race condition. Change-Id: Idef15bb2620a8e3516f574594641038e60d8429b