Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5613849img; Wed, 27 Mar 2019 11:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi+RqE4pcem3gx35WKZoatG/rVUAzkKS4xvqbH6JBSaJR0c4fDqrwEjZpa1JDIqLnwrM01 X-Received: by 2002:a17:902:8f92:: with SMTP id z18mr30608633plo.123.1553712242165; Wed, 27 Mar 2019 11:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712242; cv=none; d=google.com; s=arc-20160816; b=C0GWFdbUckSNQaV7ZoAPcW1rCQBj1dSy1C15uasV2ub5lV0LgkrTo9d9tApugkSdBG 85oO9qWS6Iityxi/JZeug3/Sg/xJgG32GdOgUCP5Z3n1uNyZXzej00tCn/y+pJHVBKoy e4zwrf+jqAl5RqkjVMWqjgHeO0giJnByzCAK3PCTX5kxlnmm8y3PN/LTdEzU6qwfu+tt 2k/dMuGD48RjRTr0KasUiU+nZ9KogYK3i3QS1avSYNGUM3qpd8YiZKZEdv85+fquf55v JyXWMcbwBJAXi0y8kifbRt+a4EduJBmbmY4D5fcMrdMsTLhrWnq5U6olA/UWibFr/CYE SzcA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IBMSnQz2IOvLfsQMq64/fD69zWnrw0bx8cfJkdk4Ie4=; b=edP7i2I71QMSmelR5BUYyMeouuPaCteMzNWoF9GlElaJnFG6ljiCraX1kPnl+EbweB HRAGe75RK7VEL+T174zt0+QfCKdPX0xJHhJpwj548QHEOzx5FZZwGqfjgYn/jpfxDI/6 AJo/FcbmBV7nyrr6mN2yBaYUPa5/aK0njPV8Ov7YfAFTFPiannYO5DaTYbF+OAw1n8Ir Ff3zR3IkWdXu5mQsU4K8EGsZsSpbck0T3rHQrY+6gAbqVK8ufMFlv+mn/QJS3yUCNidN TX4FRhyDHPa7QWBETCgbV9GrlJgB96SPfoZ9w0PBjVrEcxaQT+bNfKBWwJcoAkwIdbD9 F2qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GEM8nohW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26si7438536pfi.54.2019.03.27.11.43.46; Wed, 27 Mar 2019 11:44:02 -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=GEM8nohW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391329AbfC0SWk (ORCPT + 99 others); Wed, 27 Mar 2019 14:22:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:40626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403868AbfC0SW3 (ORCPT ); Wed, 27 Mar 2019 14:22:29 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 11ADA2082F; Wed, 27 Mar 2019 18:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710948; bh=9Mq6yfTS7S/6cVE7UJE1HkxT6JI5piiGyIVlb7iZ7WM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GEM8nohWR3iA+j6Os1TNlOFxiPa5PM7CGIPUTMGp2eAhVXJO19kOxPHAfFkUL0lr7 UhnrgQFBd9VAj7dIzusC7WMLlO+6jL77lNPWLTjSjjI2mbN0ibYNgrvDVLk/F4rQse LUWj73SXafjywJdv/SGCKvnkjNoH1Q8lGJM3uM/s= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: wen yang , 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 AUTOSEL 4.9 60/87] ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe Date: Wed, 27 Mar 2019 14:20:13 -0400 Message-Id: <20190327182040.17444-60-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: wen yang [ 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 dffd549a0e2a..705d2524ec31 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