summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-12-16 17:16:32 -0800
committerJack Pham <jackp@codeaurora.org>2016-12-16 17:23:51 -0800
commit7aedfdd8f2dd282976faa9c98f473f056851fb85 (patch)
tree0af99986c115bef8d6bede1b6796dd2a1b99b329 /tools/perf/scripts/python
parent3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff)
usb: pd: Register power_supply notifier after completing init
There is a rare but possible chance that just after registering the psy_changed notifier callback with the power_supply framework that it could be called immediately, schedule the usbpd_sm, and execute the worker on another thread, all before usbpd_create() has completed. Since some structures, notably pd->rx_lock, haven't been fully initialized yet, this leads to spin_lock() call accessing uninitialized data. Fix this by moving the power_supply_reg_notifier() call to the very end of usbpd_create() after everything has been initialized. Change-Id: I7d2bc9eca8e7e30dbc656be620a0f4fd8eea2239 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions