aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-03-10 14:58:26 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-03-16 15:49:56 +0000
commit2e4b88f73966adead360e47621df0183586fac32 (patch)
treef669a42923202901eee174bb40c1ba839f63c1b0 /drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
parentiio: adc: xilinx: fix potential use-after-free on probe (diff)
downloadlinux-dev-2e4b88f73966adead360e47621df0183586fac32.tar.xz
linux-dev-2e4b88f73966adead360e47621df0183586fac32.zip
iio: adc: xilinx: prevent touching unclocked h/w on remove
In remove, the clock is disabled before canceling the delayed work. This means that the delayed work may be touching unclocked hardware. Fix by disabling the clock after the delayed work is fully canceled. This is consistent with the probe error path order. Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c')
0 files changed, 0 insertions, 0 deletions