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

Skip to content
Commit 3c76bcf5 authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam
Browse files

soc: qcom: bam_dmux: Fix race condition between close and notify_all



In power collapse state the msm_bam_dmux_close function make the link
up to send the close command to A2. Once the link is up notify callback
function is called for all open channels. There is a small window that
to can cause a race condition between notify_all and msm_bam_dmux_close.

Add spin_lock protection for bam_ch global strcture to avoid race
condition.

CRs-Fixed: 688437
Change-Id: I88f4a740770da662e63e1e492104b4752bf83e52
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
parent 3dda8f02
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