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

Skip to content
Commit f6f0b82a authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: initialize mutexes earlier



The mutex "bms_output_lock" can be used in the
read_iadc_channel_select function of the bms driver's probe routine.
However, at this time the mutex is not initialized, and can cause a
crash. Fix this by initializing the bms driver mutexes earlier in the
probe routine.

CRs-Fixed: 510669
Change-Id: Ic57adce617a1354d7b96e3e710cfa7e534135622
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 3da060e3
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