All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: dapm: Ensure kcontrol list is initialised
@ 2013-08-12 23:21 Mark Brown
  2013-08-13  8:56 ` Lars-Peter Clausen
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2013-08-12 23:21 UTC (permalink / raw)
  To: Liam Girdwood, Lars-Peter Clausen; +Cc: alsa-devel, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

Ensure that the recently added path kcontrol list is initialised otherwise
we may crash trying to delete routes that don't have kcontrols.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 sound/soc/soc-dapm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index b78eaa1..1e0e4ce 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2357,6 +2357,7 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
 	path->sink = wsink;
 	path->connected = connected;
 	INIT_LIST_HEAD(&path->list);
+	INIT_LIST_HEAD(&path->list_kcontrol);
 	INIT_LIST_HEAD(&path->list_source);
 	INIT_LIST_HEAD(&path->list_sink);
 
-- 
1.8.4.rc1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: dapm: Ensure kcontrol list is initialised
  2013-08-12 23:21 [PATCH] ASoC: dapm: Ensure kcontrol list is initialised Mark Brown
@ 2013-08-13  8:56 ` Lars-Peter Clausen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars-Peter Clausen @ 2013-08-13  8:56 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, linaro-kernel, Liam Girdwood, Mark Brown

On 08/13/2013 01:21 AM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> Ensure that the recently added path kcontrol list is initialised otherwise
> we may crash trying to delete routes that don't have kcontrols.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>

Acked-by: Lars-Peter Clausen <lars@metafoo.de>

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-13  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 23:21 [PATCH] ASoC: dapm: Ensure kcontrol list is initialised Mark Brown
2013-08-13  8:56 ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.