]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda-dai: fix potential locking issue
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 24 Sep 2021 19:24:17 +0000 (14:24 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Sep 2021 08:22:51 +0000 (10:22 +0200)
commit203202f604c556b58b6bb4d126b5f786d42e85f7
tree843533aa2da3d3fce4f0fd4b94c3b8dcb6e857eb
parent40410175eba6ac9c85ea6720c2eaf9cb0d6faf20
ASoC: SOF: Intel: hda-dai: fix potential locking issue

The initial hdac_stream code was adapted a third time with the same
locking issues. Move the spin_lock outside the loops and make sure the
fields are protected on read/write.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210924192417.169243-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/sof/intel/hda-dai.c