diff options
author | Mark Brown <broonie@kernel.org> | 2019-07-26 14:10:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-26 14:10:09 +0200 |
commit | 3b46a67af2eb8214a634a37c485146ca0ef42849 (patch) | |
tree | 1fef31dfdf401819f71158ad28ba87e7c8c4d886 /sound/soc/soc-dapm.c | |
parent | ASoC: codec2codec: deal with params when necessary (diff) | |
parent | ASoC: ti: davinci-mcasp: Correct slot_width posed constraint (diff) | |
download | linux-3b46a67af2eb8214a634a37c485146ca0ef42849.tar.xz linux-3b46a67af2eb8214a634a37c485146ca0ef42849.zip |
Merge branch 'asoc-5.3' into asoc-5.4
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 6dcaf9ff6eb5..be9bb05b0165 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1157,8 +1157,8 @@ static __always_inline int is_connected_ep(struct snd_soc_dapm_widget *widget, list_add_tail(&widget->work_list, list); if (custom_stop_condition && custom_stop_condition(widget, dir)) { - widget->endpoints[dir] = 1; - return widget->endpoints[dir]; + list = NULL; + custom_stop_condition = NULL; } if ((widget->is_ep & SND_SOC_DAPM_DIR_TO_EP(dir)) && widget->connected) { @@ -1195,8 +1195,8 @@ static __always_inline int is_connected_ep(struct snd_soc_dapm_widget *widget, * * Optionally, can be supplied with a function acting as a stopping condition. * This function takes the dapm widget currently being examined and the walk - * direction as an arguments, it should return true if the walk should be - * stopped and false otherwise. + * direction as an arguments, it should return true if widgets from that point + * in the graph onwards should not be added to the widget list. */ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, struct list_head *list, @@ -3706,6 +3706,8 @@ request_failed: dev_err(dapm->dev, "ASoC: Failed to request %s: %d\n", w->name, ret); + kfree_const(w->sname); + kfree(w); return ERR_PTR(ret); } |