From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 515B6C433FE for ; Thu, 12 May 2022 14:15:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 960E41AB8; Thu, 12 May 2022 16:14:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 960E41AB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1652364947; bh=fS5LIWilDa+hz2Ola1gsUeyqJCEe4vAjSZHbZ6Wyv2I=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=HdWdYxSYdks+3S2bOPW/domYd4qHFvqa/eDem91NFCdL9j5CEBzzFefjofEuzrfg5 S1hTfbwmAawJ6j/RT3NsH1NDmdx3jB+9GfJquzd8EuPIK21sj3M5OGqPLaVQPlbb/v T+dzG4BN7QOq+3MtFEeIrPA7Np6DM0CXb6dHBETE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 592F7F8053C; Thu, 12 May 2022 16:13:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8B12BF80539; Thu, 12 May 2022 16:13:06 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 51F35F80529 for ; Thu, 12 May 2022 16:13:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 51F35F80529 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jnJCUtKP" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 70BB2B82832; Thu, 12 May 2022 14:12:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE53CC385B8; Thu, 12 May 2022 14:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652364778; bh=fS5LIWilDa+hz2Ola1gsUeyqJCEe4vAjSZHbZ6Wyv2I=; h=From:To:In-Reply-To:References:Subject:Date:From; b=jnJCUtKPLyvpYm1omocXcq4bY8fiwWPyNoHSOf2muv4nzjc4/pCzJXco+WbVrys2B nVU67xTgNAzmd+KG0jtvtElGYqRyg4AFF0nh7MbnT8oPfogz3e4wGg2D94E5fDhhHb AnwD31Bt8FKC8TtmDIYg1SikcscL4PtqVPqSOzy5PKSWj/T5w/Rxx4Ei3WkJlrgVEq hS5foECa1v5ajLahqJFojqngPid8DGO+Dc/9zdpYOEWo/7eQbOMe9RZlrPR43A1WLi Ii0tbKzsw8OnyryC5YIB6Qi4o5SEMUVQ2JmMHo4cJz0/uYbJXoT5peO0DKv/vb5Ook SznOxKhgvpj5w== From: Mark Brown To: Fabio Estevam , alsa-devel@alsa-project.org, Takashi Iwai , linuxppc-dev@lists.ozlabs.org, shawnguo@kernel.org, ye.guojin@zte.com.cn, Jaroslav Kysela , linux-arm-kernel@lists.infradead.org, Shengjiu Wang , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Nicolin Chen , Liam Girdwood , linux-imx@nxp.com, linmq006@gmail.com, Xiubo Li , Sascha Hauer In-Reply-To: <20220511052740.46903-1-linmq006@gmail.com> References: <20220511052740.46903-1-linmq006@gmail.com> Subject: Re: [PATCH] ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe Message-Id: <165236477462.1016627.3973321279072799571.b4-ty@kernel.org> Date: Thu, 12 May 2022 15:12:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Wed, 11 May 2022 09:27:40 +0400, Miaoqian Lin wrote: > of_find_device_by_node() takes reference, we should use put_device() > to release it. when devm_kzalloc() fails, it doesn't have a > put_device(), it will cause refcount leak. > Add missing put_device() to fix this. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe commit: ed46731d8e86c8d65f5fc717671e1f1f6c3146d2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 036D9C433FE for ; Thu, 12 May 2022 14:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-Id:Subject: References:In-Reply-To:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3cAJmQcgY8wOhJPhvDKusCxa4PJkyfpR1M3ehazPYnw=; b=LD655pKX+hYQDI O+t3k/ImLfu11VL91mcoDGLtwArnOTHavacgtusHjzBhUk9nA7XbnxJsQpTxWtYFiPXXDqaPQ0cR4 /2N3NLunuGOJAGKrREBjBqKSGNx5bkO6QOAFwZzmtdFQ7a7aVGW4AVIveaeSApr6Pxdlx2Qg/mL3C rqIPMmBwTbQY6iqV4WkeVhHY+nuBUcZRSae5XPt/bd+YMPukmd6kw149kYji/SlR7/70y2BH5DZAv LA7naZG4c6BjZW5FEMW0W1gCe+X104h7nlnzBEkiQBFaAS5zKtjNtWb+ASW6PGk+K5o97QIN8Cw5m 5y9Vt5AXO2c03wzSSGWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1np9Ze-00CHwp-VY; Thu, 12 May 2022 14:13:51 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1np9Z3-00CHVw-Os for linux-arm-kernel@lists.infradead.org; Thu, 12 May 2022 14:13:15 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 70BB2B82832; Thu, 12 May 2022 14:12:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE53CC385B8; Thu, 12 May 2022 14:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652364778; bh=fS5LIWilDa+hz2Ola1gsUeyqJCEe4vAjSZHbZ6Wyv2I=; h=From:To:In-Reply-To:References:Subject:Date:From; b=jnJCUtKPLyvpYm1omocXcq4bY8fiwWPyNoHSOf2muv4nzjc4/pCzJXco+WbVrys2B nVU67xTgNAzmd+KG0jtvtElGYqRyg4AFF0nh7MbnT8oPfogz3e4wGg2D94E5fDhhHb AnwD31Bt8FKC8TtmDIYg1SikcscL4PtqVPqSOzy5PKSWj/T5w/Rxx4Ei3WkJlrgVEq hS5foECa1v5ajLahqJFojqngPid8DGO+Dc/9zdpYOEWo/7eQbOMe9RZlrPR43A1WLi Ii0tbKzsw8OnyryC5YIB6Qi4o5SEMUVQ2JmMHo4cJz0/uYbJXoT5peO0DKv/vb5Ook SznOxKhgvpj5w== From: Mark Brown To: Fabio Estevam , alsa-devel@alsa-project.org, Takashi Iwai , linuxppc-dev@lists.ozlabs.org, shawnguo@kernel.org, ye.guojin@zte.com.cn, Jaroslav Kysela , linux-arm-kernel@lists.infradead.org, Shengjiu Wang , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Nicolin Chen , Liam Girdwood , linux-imx@nxp.com, linmq006@gmail.com, Xiubo Li , Sascha Hauer In-Reply-To: <20220511052740.46903-1-linmq006@gmail.com> References: <20220511052740.46903-1-linmq006@gmail.com> Subject: Re: [PATCH] ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe Message-Id: <165236477462.1016627.3973321279072799571.b4-ty@kernel.org> Date: Thu, 12 May 2022 15:12:54 +0100 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220512_071313_995070_0D0B249B X-CRM114-Status: GOOD ( 14.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 11 May 2022 09:27:40 +0400, Miaoqian Lin wrote: > of_find_device_by_node() takes reference, we should use put_device() > to release it. when devm_kzalloc() fails, it doesn't have a > put_device(), it will cause refcount leak. > Add missing put_device() to fix this. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe commit: ed46731d8e86c8d65f5fc717671e1f1f6c3146d2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel