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

Commit ff53db70 authored by Dhaval Patel's avatar Dhaval Patel Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: protect retire count with mutex lock



The retire timeline counter in command mode is used
by vsync worker queue, validate/commit ioctl thread
and overlay off. However, this counter is not protected
with any locking mechanism and each thread updates the
value. Race condition with updated value between two
thread can lead to invalid vsync operation or list
corruption. This change protects the counter with
mutex lock to avoid all such race conditions.

Change-Id: Ib3c3f6c839fc82c6d31fa28066df1f23dab19746
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent d171201f
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