From 4fe3db446144c7ba4dbaf9065152b41a3b86d78c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 6 Feb 2020 07:29:22 +0000 Subject: [PATCH] 4.9-stable patches added patches: asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch --- ...ount-unbalance-to-link-codec_of_node.patch | 41 +++++++++++++++++++ queue-4.9/series | 1 + 2 files changed, 42 insertions(+) create mode 100644 queue-4.9/asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch diff --git a/queue-4.9/asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch b/queue-4.9/asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch new file mode 100644 index 00000000000..ed2adc3a7e9 --- /dev/null +++ b/queue-4.9/asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch @@ -0,0 +1,41 @@ +From nobuhiro1.iwamatsu@toshiba.co.jp Thu Feb 6 07:00:30 2020 +From: Nobuhiro Iwamatsu +Date: Thu, 6 Feb 2020 12:36:11 +0900 +Subject: ASoC: qcom: Fix of-node refcount unbalance to link->codec_of_node +To: stable@vger.kernel.org +Message-ID: <20200206033611.10593-1-nobuhiro1.iwamatsu@toshiba.co.jp> + +From: Nobuhiro Iwamatsu + +[ This is a fix specific to 4.4.y and 4.9.y stable trees; + 4.14.y and older are not affected ] + +The of-node refcount fixes were made in commit 8d1667200850 ("ASoC: qcom: +Fix of-node refcount unbalance in apq8016_sbc_parse_of()"), but not enough +in 4.4.y and 4.9.y. The modification of link->codec_of_node is missing. +This fixes of-node refcount unbalance to link->codec_of_node. + +Fixes: 8d1667200850 ("ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()") +Cc: Patrick Lai +Cc: Banajit Goswami +Cc: Takashi Iwai +Cc: Mark Brown +Cc: Sasha Levin +Signed-off-by: Nobuhiro Iwamatsu +Signed-off-by: Greg Kroah-Hartman +--- + sound/soc/qcom/apq8016_sbc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/sound/soc/qcom/apq8016_sbc.c ++++ b/sound/soc/qcom/apq8016_sbc.c +@@ -128,7 +128,8 @@ static struct apq8016_sbc_data *apq8016_ + link->codec_of_node = of_parse_phandle(codec, "sound-dai", 0); + if (!link->codec_of_node) { + dev_err(card->dev, "error getting codec phandle\n"); +- return ERR_PTR(-EINVAL); ++ ret = -EINVAL; ++ goto error; + } + + ret = snd_soc_of_get_dai_name(cpu, &link->cpu_dai_name); diff --git a/queue-4.9/series b/queue-4.9/series index e72c0b43793..cd9c53d43a2 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -1,3 +1,4 @@ media-iguanair-fix-endpoint-sanity-check.patch x86-cpu-update-cached-hle-state-on-write-to-tsx_ctrl.patch sparc32-fix-struct-ipc64_perm-type-definition.patch +asoc-qcom-fix-of-node-refcount-unbalance-to-link-codec_of_node.patch -- 2.47.3