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)
Merged-In: I96870027fd171fea15957b292c4898043262d9cf
Change-Id: I96870027fd171fea15957b292c4898043262d9cf
(cherry picked from commit 51f5abaff8af4859b08a3f37401e3f8d9aa68047)
1 file changed