diff options
author | 2019-02-15 17:03:44 -0500 | |
---|---|---|
committer | 2019-02-20 00:36:52 +0100 | |
commit | bf592c56b1650eb12511c4b3f422fecf3871bbb9 (patch) | |
tree | 3253ee025dbeadd4abab3e079367336caa7cc2b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: core: Add a field to support battery max voltage (diff) | |
download | wireguard-linux-bf592c56b1650eb12511c4b3f422fecf3871bbb9.tar.xz wireguard-linux-bf592c56b1650eb12511c4b3f422fecf3871bbb9.zip |
max17042_battery: fix potential use-after-free on device remove
The work which is scheduled on a POR boot is potentially left
pending or running until after the device module is removed,
which could result in a use-after-free.
Fix by registering a cancel/sync callback, which gets executed as
part of standard resource unwinding.
This issue was detected with the help of Coccinelle.
Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions