Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp714070ybv; Thu, 13 Feb 2020 08:12:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzzm5zequd2q0/vbtxcjgdVOIfyQ67pERBoeUvulN+m8S771M5QhJX6I6rS0broWvzurt4u X-Received: by 2002:a54:4895:: with SMTP id r21mr3492096oic.107.1581610347293; Thu, 13 Feb 2020 08:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610347; cv=none; d=google.com; s=arc-20160816; b=GhuZNbFJmYC/FgdBUmA4dwRTBMpqHQKA2tAIfMinZ+GG2MuU+JhTB7SRxqljL5jM0p CEaGv5H/tiJsK39bNLDbCvwZOA5XfALgbZAGZlJg4v1563IquFPCDL9ysX6xXReEIoFs JJ1fQy616HyIjJ4/bY3tLHq824kzaXzA9hsDhJIWpW6osj7PM7q+xWBpFYehW9mq1Ikk QUDDqXt1zqSZr99TEavErz+Ai3tbU6tvGgOBycwFWJAnH+K6TNFaW47ihIqoGZCGB0ZA hPBAiLPYVCNa9neftz4cZ45PhJyoahnJOiIQcb9fv7IrDQnUtrYcwdID03r1xJBanDHb mlDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yACHk/bog6zB1YSKI0DOS+yiH56T12aO4iSJttcmStY=; b=Tav6ZjrrGBz4gNoqYUgm2C3I0d1bupLSdAkSYWtPgTtwpa2LuwJJcXE927B4zNpUdx eZp12Zwl+t3LiDaYVi4bYy4usAWpnKQlnP49YivJXmT0PTn/F/P7ovURwXdI6Q14xKku W3JKMBBDmaMqMo9Ytfoy5tWdF88sny9frvqnv7GFxByQL626GJrN5iKiCdv2NQRliyfx 0aWCNRYj5GCHZwedyYeqh/+dZoDEJcrswTJmUeZaC+0M9uV5jz34D00uoB+5DZPYnErN TDCGXh4TCaafFyyX1l+TCdlZEHcsk7+7ACoymVcc6dpLD2ApodaGC7ScnbR5x4ZWUgKT NLVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F1qlIsHG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si1410387otq.237.2020.02.13.08.12.12; Thu, 13 Feb 2020 08:12:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F1qlIsHG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbgBMPW1 (ORCPT + 99 others); Thu, 13 Feb 2020 10:22:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:59570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727881AbgBMPW0 (ORCPT ); Thu, 13 Feb 2020 10:22:26 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 475CC24691; Thu, 13 Feb 2020 15:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607344; bh=r3ITya3+iLuggfTp/Cp5GzvU6us3UZStXpWPGQ4bTj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F1qlIsHGhmqvB6/hgRK4mE0MbuIxC7vGKRSTQcF8/eHY4C+r/c/nxv30hmKx71zqF c78ee8wf6TcHJ9i8NFaFKq54levznBFXUyED38aAFQWfwH956xuOwhO9l7oNYjOm0a vlsRCOinFSxoS05odEh3fTgoSPQz4Q2lENTG6a1c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Patrick Lai , Banajit Goswami , Takashi Iwai , Mark Brown , Sasha Levin , Nobuhiro Iwamatsu Subject: [PATCH 4.4 04/91] ASoC: qcom: Fix of-node refcount unbalance to link->codec_of_node Date: Thu, 13 Feb 2020 07:19:21 -0800 Message-Id: <20200213151823.036410808@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151821.384445454@linuxfoundation.org> References: <20200213151821.384445454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index 886f2027e671..f2c71bcd06fa 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -112,7 +112,8 @@ static struct apq8016_sbc_data *apq8016_sbc_parse_of(struct snd_soc_card *card) 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); -- 2.23.0