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

Commit 7c7de82e authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Acquire lock before iterating over vb2_bufq list



In msm_comm_flush_in_invalid_state, the vb2_bufq list
was iterated over without holding the bufq lock. This
can lead to a race condition and corrupt the list, if we get an
EBD or FBD while flushing the buffers. This change helps avoid
any race condition while iterating over the vb2_bufq list.

Change-Id: I7be939aec0c7bd274a211c29537607f695758bfc
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 77813844
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