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: 172443856
Test: SST, RSST, XTS
Change-Id: I34593e6507da9bad13c6d92faf40c4d790825d39
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
1 file changed
tree: abdf6dedcb0c640c460f49aee46f24c6998a9011
  1. config/
  2. msm/
  3. Makefile