summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-02-16 00:43:03 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2019-04-05 19:01:38 +0300
commit252fbeb86ceffa549af9842cefca2412d53a7653 (patch)
treea69dc531ba921563ac47a52f938351ef12781470 /tools/perf/scripts/python/exported-sql-viewer.py
parent0cd0e49711556d2331a06b1117b68dd786cb54d2 (diff)
downloadlinux-252fbeb86ceffa549af9842cefca2412d53a7653.tar.xz
power: supply: max14656: fix potential use-after-free
Explicitly cancel/sync the irq_work delayed work, otherwise there's a chance that it will run after the device is removed, which would result in a use-after-free. Note that cancel/sync should happen: - after irq's have been disabled, as the isr re-schedules the work - before the power supply is unregistered, because the work func uses the power supply handle. Cc: Alexander Kurz <akurz@blala.de> Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions