Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f5abaf authored by Mengjie Xie's avatar Mengjie Xie Committed by Wonsik Kim
Browse files

mTraits is used without been locked

mTraits could be read/written by more than one thread,
And it will cause some timing issue if there is no synchronization
Solution:
use getId() instead of mTraits->id when use its id.

Bug: 142629712
Test: This is seldom timing issue, and may be reproduced by monkey test (enable uasan)
Change-Id: I96870027fd171fea15957b292c4898043262d9cf
parent 5871ab51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment