Skip to contentSkip to conversation

ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak

PATCH In review Axel Lin 2 participants 2 messages Aug 30, 2015

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak

All the callers assume devm_spear_pcm_platform_register is a devm_ API, so use devm_snd_dmaengine_pcm_register in devm_spear_pcm_platform_register.

Fixes e1771bcf99b0 ("ASoC: SPEAr: remove custom DMA alloc compat function")
---
 sound/soc/spear/spear_pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spear_pcm.c +1 -1
index a7dc3c5..e8476da 100644
@@ -44,7 +44,7 @@ int devm_spear_pcm_platform_register(struct device *dev,
 	*config = spear_dmaengine_pcm_config;
 	config->compat_filter_fn = filter;
 
-	return snd_dmaengine_pcm_register(dev, config,
+	return devm_snd_dmaengine_pcm_register(dev, config,
 		SND_DMAENGINE_PCM_FLAG_NO_DT |
 		SND_DMAENGINE_PCM_FLAG_COMPAT);
 }
Signature · 1 line
2.1.0
maintainer
#1 lore raw

Applied "ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak" to the asoc tree

The patch

ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From 2c3f4b97eea5ce405baf2591715445da6ed05851 Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Sun, 30 Aug 2015 08:08:15 +0800
Subject: [PATCH] ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix
resource leak

All the callers assume devm_spear_pcm_platform_register is a devm_ API, so use devm_snd_dmaengine_pcm_register in devm_spear_pcm_platform_register.

Fixes e1771bcf99b0 ("ASoC: SPEAr: remove custom DMA alloc compat function")
---
 sound/soc/spear/spear_pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spear_pcm.c +1 -1
index a7dc3c5..e8476da 100644
@@ -44,7 +44,7 @@ int devm_spear_pcm_platform_register(struct device *dev,
 	*config = spear_dmaengine_pcm_config;
 	config->compat_filter_fn = filter;
 
-	return snd_dmaengine_pcm_register(dev, config,
+	return devm_snd_dmaengine_pcm_register(dev, config,
 		SND_DMAENGINE_PCM_FLAG_NO_DT |
 		SND_DMAENGINE_PCM_FLAG_COMPAT);
 }
Signature · 1 line
2.5.0