'add-/removeStates()' can modify the torch status map without holding the necessary 'mTorchStatusMutex'. Any such modification could theoretically access or contribute to an inconsistent state of the torch status map. To avoid any possible data race conditions, always try to acquire 'mTorchStatusMutex' first. Bug: 77531948 Test: Camera CTS Change-Id: Ic135d450d4d32224964eabceb24718e03a439fc3gugelfrei
parent
fa33327eb3
commit
7f25e5f57f
Loading…
Reference in new issue