summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-02-15 16:43:03 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-06 13:05:39 +0100
commit1b6901f3c6008d2e05f0b47848b2a64bffe55942 (patch)
tree7d204ad34bc45a7d08a0a717b13985d23fe38583 /tools
parenta0d8a590d983d55fc48293ff573ae31a23b3c7d0 (diff)
power: supply: max14656: fix potential use-after-free
[ Upstream commit 252fbeb86ceffa549af9842cefca2412d53a7653 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions