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

Skip to content
Commit 386a55ad authored by Eric Holmberg's avatar Eric Holmberg Committed by Stephen Boyd
Browse files

msm: bam_dmux: Add locking around platform device calls



The channel state is used to determine if a platform device has been
registered on a particular channel.  In the case of a subsystem restart
while a channel is being opened, the subsystem restart can occur between
the channel state being set to opened and the platform device being
added.  This will result in the subsystem restart code seeing that the
channel is open and attempting to remove a platform device that has been
added.

This change adds mutex protection around the channel state updates and
the platform device add/remove calls to handle any race conditions.

CRs-Fixed: 378060
Change-Id: I0838af6c142b3c771d711f48843e4fdbea210f22
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 0e7f6724
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