summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJiada Wang <jiada_wang@mentor.com>2017-12-08 09:15:38 +0300
committerMark Brown <broonie@kernel.org>2017-12-08 21:51:32 +0300
commit33f801366bdf3f8b67dfe325b84f4051a090d01e (patch)
tree0f322e9b274164c3bd6e3726cb93ec438deaa493 /usr
parenta91d7fb97092d6b840af5899ded3b389603fd7f1 (diff)
downloadlinux-33f801366bdf3f8b67dfe325b84f4051a090d01e.tar.xz
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 <jiada_wang@mentor.com> Reviewed-by: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions