diff options
author | Jiada Wang <[email protected]> | 2017-12-07 22:15:38 -0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2017-12-08 18:51:32 +0000 |
commit | 33f801366bdf3f8b67dfe325b84f4051a090d01e (patch) | |
tree | 0f322e9b274164c3bd6e3726cb93ec438deaa493 /tools/perf/scripts/python/check-perf-trace.py | |
parent | a91d7fb97092d6b840af5899ded3b389603fd7f1 (diff) |
ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update
Currently there is race condition between set of byte_pos and wrap
it around when new buffer starts. If .pointer is called in-between
it will result in inconsistent pointer position be returned
from .pointer callback.
This patch increments buffer pointer atomically to avoid this issue.
Signed-off-by: Jiada Wang <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Acked-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions