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

Skip to content
Commit ee5b9024 authored by Umang Agrawal's avatar Umang Agrawal Committed by Gerrit - the friendly Code Review server
Browse files

power: smb5: Avoid potential votable deadlock issue



There exists a possible deadlock scenario whenever fcc_votable
and usb_icl_change votable rerun happens simultaneously since in
the fcc votable path, following locks can be acquired in sequence:
pl_disable lock -> fv_votable lock -> usb_icl_change lock, and in
the usb_icl_change votable, pl_disable lock needs to be acquired.
So based on race condition, there exists the possibility of
deadlock if pl_disable lock is acquired by FCC votable rerun first
but simulaneously, usb_icl votable is also locked on another thread.
Avoid this situation by preventing acquisition of usb_icl votable
lock in the fcc_rerun election path.

Change-Id: Icafad5fdade30ef15d581fe5afb3427667a4a922
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent eac6c82e
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