QCamera3: Avoid possible deadlock when reporting failed buffers

"QCamera3YUVChannel::streamCbRoutine" will acquire "mOfflinePpLock"
before calling the channel error callback. The current callback
implementation will also try to acquire "mMutex". This could trigger
a deadlock in case a request for the YUV channel is also currently
executing. The request will acquire "mMutex" first and then try
to lock "mOfflinePpLock".

Bug: 63002361
Test: Complete Camera/Camera2 CTS.
Change-Id: I2877aebf94c5a15b6742548bcbd1d1c4adc5e9d2
1 file changed
tree: 7b9f1224af35b630ffbf0a0df9e00897d1f10425
  1. msm8998/
  2. Android.mk
  3. CleanSpec.mk