Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5584600img; Wed, 27 Mar 2019 11:09:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVee6VksZ2n+iKn+jWYgDE/vIqvyfBKTZPwKVVeiJ7dTQXdb3AwtWy99Q+ehYnyAnNUEa5 X-Received: by 2002:a63:4383:: with SMTP id q125mr33421624pga.370.1553710170975; Wed, 27 Mar 2019 11:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553710170; cv=none; d=google.com; s=arc-20160816; b=T7BaGG3faNBkzR4yDdoZNVLPNkI8XptYOtHh6n1PtfsaImhjv8wxx6F0wohboHfQkg 9rndnalmub2Nb8o0YoPDwz715N7fkrKDVwSISWH59dK9Fw+ez/KgP3U8xkQmlB34jhbE TzXEUdqazi9K989HRc6l8OV9WzUxtD+7H6c05q/BvcyJByQ+8RIXrdlkzcVOqAQk5FQ1 0GAm/J6Kh/tm1JTHurTzUMeu52tvmTj/Gtwywf/ENn+c/5HRXREVkwvbRSfZz4XTObZi ahyJNdkDVkymE4i+1Nt1Eipx96BCeQxMQOIy4tQs/n7m40dQNR/6U4T0qoPViqp+jdoV OVKw== 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=rRLsRieXjH9MVXrx3c4lCTXkM0nUQsu4Fc7lJw/8/rI=; b=yeOWqLu5WKfRvXjDQ1euwzVFqkK5lRjeponwiuffPa3T9xCHI6dJpGja6ObiF6Tgv2 wSIV/Pcsy+EnqxzYGsWxgJp2SdwXD8NHGp7+ls1uex41ier7Ub/74jrMcED2DUZK653X GsooHA49TZ8x1Vij6eXC7bKQS0QU+qnibCHwfN4snsQ33w0uEL69QBtcpfFjQT+YDj94 wwfnY7q3iCJmOazWicfVNaWK7Jy2w1WsTSuu4Hxx9BFuRUVne1FeAqfBCT6AKTKTYZhY q93rrr0gtUp/+UGeFHUkui4xqRXM4Gh8XX8mNAA1wDoBTggWU99XwsQ8+PBbHPAYLctm AXgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1BGL8M58; 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 e6si18335700pgc.252.2019.03.27.11.09.15; Wed, 27 Mar 2019 11:09:30 -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=1BGL8M58; 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 S2388294AbfC0SID (ORCPT + 99 others); Wed, 27 Mar 2019 14:08:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:49740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388260AbfC0SHv (ORCPT ); Wed, 27 Mar 2019 14:07:51 -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 D3B7321738; Wed, 27 Mar 2019 18:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710070; bh=N6gn6ztfrXBXdagfizLRs2YSHcB87qQE5jmdoB72X3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1BGL8M584T1Xg9HDvSHn3gK8YIg5XkcS80Dl3Syd0ob4/wgqfGSya9QAI36/6ssYY FHFj84ITaBzkz9MYtJ/RcGCHsXYkFm8LlmAZWlqZE4Nnwxv/zqed7oW+p9vPPwnVSs mOiQMwEyl/0RQMYn6QfTtb5MXm5LiHJtGK4Xbozk= 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 5.0 183/262] ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe Date: Wed, 27 Mar 2019 14:00:38 -0400 Message-Id: <20190327180158.10245-183-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-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 81f2fe2c6d23..60f87a0d99f4 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