Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp999466yba; Thu, 4 Apr 2019 02:06:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDo+RiarstFy6vG7qP2jVGRi42jR3+uLXBmfEmm73ITmCi72zaMfBwM/yQ3yO3VxtNox7O X-Received: by 2002:a62:5144:: with SMTP id f65mr4705695pfb.13.1554368778858; Thu, 04 Apr 2019 02:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368778; cv=none; d=google.com; s=arc-20160816; b=lUoarEl/yHzfQmXGpXl+v3bFWYTRSUKjE7bhhEs/o6V6wIyUZVK8lJv+Q5bkgHMpYo H40vJL8NJR7lVC+qMyn2z5noMDqNVPNBbrR7HZMXVhQmXstpMN8MaQmLTA4m4vcI5PnQ CfqxOLOhIw6ZIFbhLSWewV9eaDxvWn3Zi8zNO+1DbtvEYTzQjZMPxbiBXgYASmNIju4s mdvHeHTvHVtsRriZ7XTAeQ1SfXVO9gw38AX/Vk9BJnsC3RDI5ujFDfOnne0kOhVYwgvl bBIzdgQgoHGV5QFnJ2LUyUJjPcfK/PuKGpvZLVzwt0ixQJpXe/HCvUtbjVMYZBA3r1nZ DzVg== 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=3HV9nlAut3u8d/EaTGwVMtGzSTXKSVYJVb55FDKixoo=; b=Ic9UoaewgU975tr1eaOkNZf8eAG5/D/lCpc8ZMqpn5W7JZYynxnhz5CGixdXCYlraR G3H8pBaNeEbVMO/djnd7eywnBMWbyc9DTdfQjw9BL2B/iqtf4SkOs3P0rNhY11/lxw0f QE79KO+21FCrLBRYAF3LOnQStFWfctDL6GyqEMBGTsjXJJYaDJCCH0beDxUVeXSG01H3 0C6hCycLwFvonpB3dMmqRF/+ieY4bldbMNZcARLhPFfYtghDUOK4qA24jPuVO9uw7fAv x5a51cn4XxBOymO7EZfFlCzxEaZhMHLUTjQuHoIunB0c5SDvlwFxX+uE5wPai4+MVyVv Inig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rVfY3cDa; 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 z73si15986298pgd.345.2019.04.04.02.06.03; Thu, 04 Apr 2019 02:06:18 -0700 (PDT) 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=rVfY3cDa; 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 S1732156AbfDDJFb (ORCPT + 99 others); Thu, 4 Apr 2019 05:05:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732146AbfDDJF2 (ORCPT ); Thu, 4 Apr 2019 05:05:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 D70942147C; Thu, 4 Apr 2019 09:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368727; bh=g5k0Ig8enZu5U3movZssnThUqTMqKazRszEEAOqmx5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rVfY3cDaCcwRu8H6isnKdG/xBCjUuBBWCTnC3EgTkBnYBnYRSdzBSRHxSggwkLhWP /m7rYrKIQzQnl8+cd+9wYUG8ZFijqIheRAKXUjQV6VnFD9Z2Dhr7m2YTWHYg8TG4v9 ftXkszie+3RJiTmexb417rcB2mQyez6v6QTcAEcg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Yang , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, Sasha Levin Subject: [PATCH 4.19 131/187] ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe Date: Thu, 4 Apr 2019 10:47:48 +0200 Message-Id: <20190404084609.376986169@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 11907e9d3533648615db08140e3045b829d2c141 ] The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Wen Yang Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl-asoc-card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 44433b20435c..600d9be9706e 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -689,6 +689,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) asrc_fail: of_node_put(asrc_np); of_node_put(codec_np); + put_device(&cpu_pdev->dev); fail: of_node_put(cpu_np); -- 2.19.1