Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2a9c0520 authored by Sumukh Hallymysore Ravindra's avatar Sumukh Hallymysore Ravindra
Browse files

msm: synx: Finish signaling and callback dispatch before releasing lock



Finishing the callback dispatch and external fence signaling
within the same atomic lock context prevents the probable race
condition when the dma fence signaling has woken the wait process
which might continue to release the fence once completed before
the actual signaling thread is context switched back. This will
result null pointer dereference as metadata have been cleaned.
Ensuring all the signaling functionalities have completed before
releasing the lock prevent this.
Have also added couple more checks for null pointer dereference.

Change-Id: Ib0ba849dc17dff038a1370efcd268bab8663123f
Signed-off-by: default avatarSumukh Hallymysore Ravindra <shallymy@codeaurora.org>
parent fe38b6f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment