commit | c1770e4696d6b1707a38a6bfe6229b890fee9cb5 | [log] [tgz] |
---|---|---|
author | Will McVicker <willmcvicker@google.com> | Fri Jun 03 14:54:29 2022 -0700 |
committer | Matsvei Niaverau <matvej2002@gmail.com> | Wed Mar 08 10:10:38 2023 +0100 |
tree | 8ddff3166b969a283e7a9ce4302cef12bcf2c947 | |
parent | 6647f383d27afd4665840ed54c5cd417626b94fe [diff] |
power: Fix race between closing a session and receiving a boost We need to be holding the session lock when we dereference mDescriptor since mDescriptor is destroyed when the session is closed. This patch takes the session lock and verifies if it's still open during wakeup. Test: vts run -m VtsHalGraphicsComposerV2_4TargetTest Bug: 232992641 Change-Id: I4000a85bf2932cfdcddd3006d671a3c91ed32c48