aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorSven Van Asbroeck <[email protected]>2019-02-15 17:03:44 -0500
committerSebastian Reichel <[email protected]>2019-02-20 00:36:52 +0100
commitbf592c56b1650eb12511c4b3f422fecf3871bbb9 (patch)
tree3253ee025dbeadd4abab3e079367336caa7cc2b4 /lib/test_overflow.c
parent04fb53101edef67517f2d5dc00c1a5eb707fe101 (diff)
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 <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions