aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <[email protected]>2023-04-06 10:40:10 -0400
committerJonathan Cameron <[email protected]>2023-04-10 12:26:33 +0100
commit9740827468cea80c42db29e7171a50e99acf7328 (patch)
treeb1b79488918389314a5e1859735079da803c0ae8 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent86fb8b3aebd7f2236c11521ee0c460cceb0e4d6f (diff)
iio: addac: stx104: Fix race condition for stx104_write_raw()
The priv->chan_out_states array and actual DAC value can become mismatched if stx104_write_raw() is called concurrently. Prevent such a race condition by utilizing a mutex. Fixes: 97a445dad37a ("iio: Add IIO support for the DAC on the Apex Embedded Systems STX104") Signed-off-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/c95c9a77fcef36b2a052282146950f23bbc1ebdc.1680790580.git.william.gray@linaro.org Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions