[PATCH] ASoC: soc-compress: lock pcm_mutex to resolve lockdep error

Mark Brown broonie at kernel.org
Fri Apr 9 18:22:58 CEST 2021


On Wed, 7 Apr 2021 13:14:04 +0900, Gyeongtaek Lee wrote:
> If panic_on_warn=1 is added in bootargs and compress offload playback with
> DPCM is started, kernel panic would be occurred because rtd->card->pcm_mutex
> isn't held in soc_compr_open_fe() and soc_compr_free_fe() and it generates
> lockdep warning in the following code.
> 
> void snd_soc_runtime_action(struct snd_soc_pcm_runtime *rtd,
> 			    int stream, int action)
> {
> 	struct snd_soc_dai *dai;
> 	int i;
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: soc-compress: lock pcm_mutex to resolve lockdep error
      commit: 45475bf60cc1d42da229a0aa757180c88bab8d22

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


More information about the Alsa-devel mailing list