summaryrefslogtreecommitdiff
path: root/arch/microblaze/Kconfig.debug
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-03-10 21:58:24 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-03-16 18:48:30 +0300
commit62039b6aef63380ba7a37c113bbaeee8a55c5342 (patch)
tree2d5c5fa8de8ccc3d56a1dafb07865ebe07461548 /arch/microblaze/Kconfig.debug
parent06003531502d06bc89d32528f6ec96bf978790f9 (diff)
downloadlinux-62039b6aef63380ba7a37c113bbaeee8a55c5342.tar.xz
iio: adc: xilinx: fix potential use-after-free on remove
When cancel_delayed_work() returns, the delayed work may still be running. This means that the core could potentially free the private structure (struct xadc) while the delayed work is still using it. This is a potential use-after-free. Fix by calling cancel_delayed_work_sync(), which waits for any residual work to finish before returning. Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'arch/microblaze/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions