]> 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)
commitad54507b5170bf40dd9a06ffbee01e1727fc33c1
tree843533aa2da3d3fce4f0fd4b94c3b8dcb6e857eb
parent547fcfbfde8488f6420ff434ba8fbcdf5489689b
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