summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authordmitry.torokhov@gmail.com <dmitry.torokhov@gmail.com>2020-10-06 14:55:09 -0700
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-10-10 17:49:52 +0100
commitc5bf4d645f2d5c4c216dd690c5237d778102c848 (patch)
tree8395b3ca95fa6c6f04924d9f8e59206030bfd256 /tools/perf/scripts/python/bin/stackcollapse-record
parent5b19ca2c78a0838976064c0347e46a2c859b541d (diff)
downloadlinux-c5bf4d645f2d5c4c216dd690c5237d778102c848.tar.gz
linux-c5bf4d645f2d5c4c216dd690c5237d778102c848.zip
iio: adc: exynos: do not rely on 'users' counter in ISR
The order in which 'users' counter is decremented vs calling drivers' close() method is implementation specific, and we should not rely on it. Let's introduce driver private flag and use it to signal ISR to exit when device is being closed. This has a side-effect of fixing issue of accessing inut->users outside of input->mutex protection. Reported-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20201006215509.GA2556081@dtor-ws Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions