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

Skip to content
Commit cc717b29 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Fix corruption in bus vote



msm_comm_vote_bus() calculates and prepares core->vote_data
structure under core->lock for all instances and sets the
prepared vote_data to hfi layer after releasing core->lock.
There is a possibility that this prepared vote_data can be
corrupted while hfi layer accessesing it if msm_comm_vote_bus()
is called by another instance in parallel. Fix the issue
by allocating a new vote_data structure for every call to
msm_comm_vote_bus() function.

Change-Id: I502027054d994ee8144a8505c47954a1f1e06be4
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent ad957023
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