mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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>
This commit is contained in:
parent
8af294b472
commit
7f08a89862
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue