Patch "ASoC: dapm: fix some pointer error handling" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
ASoC: dapm: fix some pointer error handling
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
asoc-dapm-fix-some-pointer-error-handling.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Oct 5 10:28:31 CEST 2017
From: Linus Walleij <[email protected]>
Date: Fri, 20 Jan 2017 14:07:52 +0100
Subject: ASoC: dapm: fix some pointer error handling
From: Linus Walleij <[email protected]>
[ Upstream commit 639467c8f26d834c934215e8b59129ce442475fe ]
commit 66feeec9322132689d42723df2537d60f96f8e44 "RFC: ASoC: dapm: handle probe deferrals" forgot a to update some two sites where the call was used. The static codechecks quickly found them.
--- sound/soc/soc-dapm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
sound/soc/soc-dapm.c +20 -0
@@ -3843,6 +3843,16 @@ int snd_soc_dapm_new_dai_widgets(struct template.name); w =snd_soc_dapm_new_control_unlocked (dapm, &template); +if (IS_ERR (w)) { +int ret =PTR_ERR (w); + +/* Do not nag about probe deferrals */ +if (ret != -EPROBE_DEFER ) +dev_err (dapm->dev, +"ASoC: Failed to create %s widget (%d)\n" , + dai->driver->playback.stream_name, ret); +return ret; + }if (!w) {dev_err (dapm->dev,"ASoC: Failed to create %s widget\n" , dai->driver->playback.stream_name);
@@ -3862,6 +3872,16 @@ int snd_soc_dapm_new_dai_widgets(struct template.name); w =snd_soc_dapm_new_control_unlocked (dapm, &template); +if (IS_ERR (w)) { +int ret =PTR_ERR (w); + +/* Do not nag about probe deferrals */ +if (ret != -EPROBE_DEFER ) +dev_err (dapm->dev, +"ASoC: Failed to create %s widget (%d)\n" , + dai->driver->playback.stream_name, ret); +return ret; + }if (!w) {dev_err (dapm->dev,"ASoC: Failed to create %s widget\n" , dai->driver->capture.stream_name);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/asoc-dapm-handle-probe-deferrals.patch queue-4.9/pinctrl-mvebu-use-seq_puts-in-mvebu_pinconf_group_dbg_show.patch queue-4.9/asoc-dapm-fix-some-pointer-error-handling.patch