Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp967422pxp; Wed, 16 Mar 2022 22:56:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGv1SXHtubvpeGd1uXeNvUWosq0n+0Lfy2YqNVOKAUCfJy01+0PM/bhWGw/SoMQKBvBeSO X-Received: by 2002:a17:90b:3e8d:b0:1bf:4525:c834 with SMTP id rj13-20020a17090b3e8d00b001bf4525c834mr13940216pjb.63.1647496606822; Wed, 16 Mar 2022 22:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647496606; cv=none; d=google.com; s=arc-20160816; b=BZorvJ9T7Z1Bk2YZMqN/b3KL6Bnv29sqiZEs8KURFCJMZ8yNJlY+qjzTaN6Bcq4LRc iOyfCLhf7pS/m7QdllvY/scGXO1SDNlMfpEZoZLB43bxNqog5dwWgO6OiWjdsKn9VP19 rDZXIhTovXyheljCHuBOJF9Ch5zDEWQvk2WOL6VeGBw3gykRIZc6cJi66qff3bBylSY2 XdsB6dx5Zbnt0HV9UahW8rf+vEvEDJJxlKd7FHacICNuWlNJ+QYVY7B5SUBZT4MvY1n0 V1hPgM03cuZBpRXrJHaUUCr4aCh5frnu4dLra+F6ew74Ufrh1bR/HJgitrU65PNglY+6 BMFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:to:from:dkim-signature; bh=qelP7kzwyuZH1xLajOqdCSERv4HlZDZ9Kf0n7khWWpc=; b=AGASV2DQWRfVmslWz8CUxSE6b5CZvkY3Kuc62M0OeRJd/QvlfH4R81iXpW8nDSx8Ij yZtAWLkX0YdGMM2+NxPLaX0y5CneruTLTbTJsexvU7/ME+yc3PSkW70VEi33Mb2Y9OOl aHdw/vPLE10oC0WPv2pCdgxJujY5l+JZLxGUiXu4oNxkDkTOt8RV1caQQr8tpNbCDUS8 WPsNlw+EXi2Tqsh7Jtwp2j5v6TBRNRO19QlqMQCq0lnTm8kigKG5+aVBiVn+7U+ELhu5 KwW0LYJib8UDIgPXhKKIU2L35ND0NPvGR4XZK/2DbJG2Xht8XryMr1QjgHzpHS0f2Soi hmOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J1gz/E1C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d14-20020a631d0e000000b003816043ee6bsi1127520pgd.96.2022.03.16.22.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:56:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J1gz/E1C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A676CB9199; Wed, 16 Mar 2022 21:52:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358022AbiCPUhV (ORCPT + 99 others); Wed, 16 Mar 2022 16:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358015AbiCPUhO (ORCPT ); Wed, 16 Mar 2022 16:37:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 640036E37D for ; Wed, 16 Mar 2022 13:35:56 -0700 (PDT) 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 1CD08B81D48 for ; Wed, 16 Mar 2022 20:35:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90745C340EE; Wed, 16 Mar 2022 20:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647462953; bh=AAAhWEJi/anFNCmxfNhIiBbA6Y0GIdzJjvQH3bJNz/k=; h=From:To:In-Reply-To:References:Subject:Date:From; b=J1gz/E1CchAXd+lS5jkyTs1XeC9RQX/mBXckYjl3klNfDO/r3soyjfzUEVuoLAAe5 lC54LRj0+gFBhgxEVGCiiEVKy1CkQHi6qdqB4jgkaJAU2O6zQK+SUggzSRyhr+OeYb D1tZT1dpw/XvUm3GMidGdyt2pt8HbPPMw3AeEEufiGmBeZCo26/Geap712HYLSODbi kn4cqxQteP+75j+hEOmJUotLedQCYzfET+jXMhIH2VIE7vsiYLI/9P3OmeUFqR2dvm /oIyYQQ0iphi3q8Srp4PjtkkFot5tRl0X2NJ9++zaGOHansIttRB0McVx10mQiBtk4 HfLkkDHibg0wQ== From: Mark Brown To: Shunli Wang , alsa-devel@alsa-project.org, Jaroslav Kysela , Miaoqian Lin , Jiaxin Yu , linux-kernel@vger.kernel.org, Tzung-Bi Shih , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Liam Girdwood , Takashi Iwai In-Reply-To: <20220316014059.19292-1-linmq006@gmail.com> References: <20220316014059.19292-1-linmq006@gmail.com> Subject: Re: [PATCH v2] ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe Message-Id: <164746295130.1220201.16478310954172024054.b4-ty@kernel.org> Date: Wed, 16 Mar 2022 20:35:51 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Mar 2022 01:40:57 +0000, Miaoqian Lin wrote: > The device_node pointer is returned by of_parse_phandle() with refcount > incremented. We should use of_node_put() on it when done. > > This function only calls of_node_put() in the regular path. > And it will cause refcount leak in error paths. > Fix this by calling of_node_put() in error handling too. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe commit: 28a265a1ee11febeec5ea73a804f30dcec3181ca 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