aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDavid Frey <[email protected]>2019-09-19 22:54:18 +0000
committerJonathan Cameron <[email protected]>2019-10-09 18:11:29 +0000
commit82f3015635249a8c8c45bac303fd84905066f04f (patch)
tree733c6c6bb18d153052a1be15dbc801e74c65271c /tools/perf/scripts/python/event_analyzing_sample.py
parentiio: adc: ad799x: fix probe error handling (diff)
downloadkernel-82f3015635249a8c8c45bac303fd84905066f04f.tar.gz
kernel-82f3015635249a8c8c45bac303fd84905066f04f.zip
iio: light: opt3001: fix mutex unlock race
When an end-of-conversion interrupt is received after performing a single-shot reading of the light sensor, the driver was waking up the result ready queue before checking opt->ok_to_ignore_lock to determine if it should unlock the mutex. The problem occurred in the case where the other thread woke up and changed the value of opt->ok_to_ignore_lock to false prior to the interrupt thread performing its read of the variable. In this case, the mutex would be unlocked twice. Signed-off-by: David Frey <[email protected]> Reviewed-by: Andreas Dannenberg <[email protected]> Fixes: 94a9b7b1809f ("iio: light: add support for TI's opt3001 light sensor") Cc: <[email protected]> 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