msm: vidc: Handle race condition for accessing session head

During CVP internal session, CVP close done calls for session
clean. session_clean API acquires the device lock and destroys
the cvp hal_session. At the same time, if decoder session is
also in the verge of close, since session_end does not have a
device lock, there is high chance to access corrupted hal_session
values.

Bug: 177218469
Test: SST, RSST, XTS
Change-Id: I34593e6507da9bad13c6d92faf40c4d790825d39
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
(cherry picked from commit 948cc9704cee8c44234819a51af261f0cf1993fd)
1 file changed
tree: 7af08474df188e988b7b223ac3ef9ac8da6572bd
  1. config/
  2. msm/
  3. Makefile