summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Vlad Popa <pvlad@google.com> 2023-06-14 02:23:33 +0200
committer Vlad Popa <pvlad@google.com> 2023-06-16 00:08:43 +0200
commit95c59ea5cf61947aea095e5ca45b8cab4dcaeb85 (patch)
tree17412f282449561e1b7c03bc11746348aaa438a4 /libs/androidfw/FileStream.cpp
parent0665ff26a961565c00e67063b4e5f2a95daf3717 (diff)
Fix deadlock caused by wrong locking order
The correct order to lock is mSettingsLock -> VolumeStreamState.class. In some cases this order was broken which lead to some deadlocks. Add quick fix. Might still need to investigate whether we need both locks, for details see b/287066735 Test: atest AudioManagerTest Bug: 283969676 Bug: 283436164 Change-Id: I27afb8da18511291f8786833bf55250097a8e705 Merged-In: Id9c9fe4bd78d23dff92bf3a32c6f16d8e7b96720
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions