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
1 file changed
tree: 8ddff3166b969a283e7a9ce4302cef12bcf2c947
  1. aidl/
  2. alsa_utils_legacy/
  3. BesLoudness/
  4. hidl/
  5. interfaces/
  6. libmtkperf_client/
  7. Android.bp
  8. Android.mk
  9. README.md
README.md

Common hardware components for MediaTek devices