android_kernel_samsung_a7y1.../drivers/iio
Sven Van Asbroeck b0216f7e30 iio: adc: xilinx: fix potential use-after-free on remove
[ Upstream commit 62039b6aef63380ba7a37c113bbaeee8a55c5342 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 16:43:24 +02:00
..
accel io: accel: kxcjk1013: restore the range after resume. 2020-04-06 15:49:23 +02:00
adc iio: adc: xilinx: fix potential use-after-free on remove 2020-04-06 16:43:24 +02:00
amplifiers A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
buffer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chemical A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
common A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dac A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
frequency A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gyro iio/gyro/bmg160: Use millidegrees for temperature scale 2020-04-06 15:49:17 +02:00
humidity A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
imu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
light A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
magnetometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
orientation A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
potentiometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pressure A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proximity A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
temperature A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trigger A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core_trigger.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-buffer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-trigger.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-triggered-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inkern.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30