diff options
| author | [email protected] <[email protected]> | 2020-10-06 14:55:09 -0700 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-10-10 17:49:52 +0100 |
| commit | c5bf4d645f2d5c4c216dd690c5237d778102c848 (patch) | |
| tree | 8395b3ca95fa6c6f04924d9f8e59206030bfd256 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 5b19ca2c78a0838976064c0347e46a2c859b541d (diff) | |
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Reviewed-by: Michał Mirosław <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/20201006215509.GA2556081@dtor-ws
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions