diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-03-14 21:26:24 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-15 01:27:39 +0000 |
commit | 7f08a89862b96d84c6dfe6c242eb010084e51d3b (patch) | |
tree | 3d406ceaf326d99ac2ffc4dc10198b5a5506dadc /sound | |
parent | 8af294b472067e9034fe288d912455cc0961d1b9 (diff) | |
download | talos-obmc-linux-7f08a89862b96d84c6dfe6c242eb010084e51d3b.tar.gz talos-obmc-linux-7f08a89862b96d84c6dfe6c242eb010084e51d3b.zip |
ASoC: dapm: Fix pointer dereference in is_connected_output_ep()
*path is not yet initialized when we check if the widget is connected.
The compiler also warns about this:
sound/soc/soc-dapm.c: In function 'is_connected_output_ep':
sound/soc/soc-dapm.c:824:18: warning: 'path' may be used uninitialized in this function
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-dapm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index f3255517de79..ab621b1db105 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -821,7 +821,6 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, (widget->id == snd_soc_dapm_line && !list_empty(&widget->sources))) { widget->outputs = snd_soc_dapm_suspend_check(widget); - path->walking = 0; return widget->outputs; } } |