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

Skip to content
Commit e89c9296 authored by Manu Gautam's avatar Manu Gautam
Browse files

phy: msm: usb: Fix extcon vbus/id notifier_block list corruption



If driver fails to register extcon notifier from probe, it defers
same to work_queue which is invoked when extcon provider becomes
available (psy_nb is used for same). If power_supply notifier call
gets invoked back to back before extcon_register_work could
unregister psy_changed notifier, it results in driver registering
extcon notifier two times without unregister. This causes notifier_nb
list corruption where notifer_nb->next points to itself and any
extcon event later results in inifinite notifer calls causing
watchdog bite.

Change-Id: Ic7963971db198817e5643b6f3968cd8a4bc2e43c
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 8f25c5b6
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