Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3529692pxp; Tue, 8 Mar 2022 16:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZZVxPY+UNSabjxi3yuAZAKsAfXrPk2Ez0kH9szTC7inaylC2MPuo7ORe24ldLS0e8yPJR X-Received: by 2002:a17:90a:a78d:b0:1bc:d11c:ad40 with SMTP id f13-20020a17090aa78d00b001bcd11cad40mr7506554pjq.246.1646786620210; Tue, 08 Mar 2022 16:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646786620; cv=none; d=google.com; s=arc-20160816; b=Ja1/MSw8DSMdIb3Jw4jCgNxT+mIOZNo5CnMC8btWx7Zd+3mLXko5F/8yDrreiVSBfq c0x3R/m6rinOzh0dveY9pijaVVHm7aNL/De7bgAqL8zKOvAiC3Vq3VAyX9Y+erh6rH5i zA3nhqo5IENg3NiHFjg2HLyT0KcXBG90oeY7Dsdd6+Yqt4vhhV8p4KzVXaAZNUwuG+d3 mHUVTNVY7gZZ2E6dD63qKTz7BOUXZBwWHyK1QAI7QVzGS1WHYhp16MQX3BzzXPgJ2QPS YiVJWo9cnDgj40XgFlOg/K7c2cYup1Yp1xQ+Zhvcd6H+nm1wNE1vq1chtJ8zgDi7REu/ dmbA== 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=3ak+66OKKQPJRurCw9shw2Dsdv56vkqsU6lknanPzho=; b=PRSnFcST0HShTrbp5ivYALhIJ080FlM8bQLmt00ATIfFaNVjgxJhAiB/y7AttSfGZD ff8Caudd1YcWgPfC/b5bzF6Mylj07AOJOFeMZspOztLUCaIJHkQrdxX6zUM48Ols62OR ayrnUIvImqTZbJBt3PhSS86G/oOxRqfu251MoiUM3vwPrheQ5DJSVw6znrqyQeEtZcnf Hf0e0LFAqdbialkTYqdZKUmHd723SIvjzTzqv2HZw6h4l/EO9U2z0p9B74VbsEZKzHhB wphKlGvqcY/5uulNKc8khT2iD/FMu9DjSVRaBjsLZijvUT42XR7oTuqzloPX3PLAoQ12 46cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n11nMwb9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id p13-20020a056a000b4d00b004f73239dfcfsi395464pfo.220.2022.03.08.16.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:43:40 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n11nMwb9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 21FECCF391; Tue, 8 Mar 2022 15:58:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349202AbiCHRZl (ORCPT + 99 others); Tue, 8 Mar 2022 12:25:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349350AbiCHRXB (ORCPT ); Tue, 8 Mar 2022 12:23:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933C35577D for ; Tue, 8 Mar 2022 09:21:15 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 55CFE61259 for ; Tue, 8 Mar 2022 17:21:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75B21C340F5; Tue, 8 Mar 2022 17:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646760060; bh=Yfasz//GbWj31pLz9SiA6bXz155z6fMe8IJXsB7WIpA=; h=From:To:In-Reply-To:References:Subject:Date:From; b=n11nMwb9nWqKWmlJcFE/z2Z68R6fKnmsJWDEAHmEpFDw337VEC8haxvHUhalJNyiI +5F+ghpsKb6jSO1JHlwkbBDRDbB5Sq8X0ALp4G+KbYo6rnuJQNl+P6O8RjJkRarWDq 3uRrQC4Mcfg4TiaAxZplUtKr81kDfPu7OBmtkXU/nmGMTpzsr5G6QFdYxtKblq84uo OjvWfZkATHmZFwuYsPoKrlGE2VJTu56KL4B/2ItejA2NfXwH51SBWfVIe5YQhvEIKJ GqtTzEcS8UK2opqMwoRHmtnoETbF0xRFnWFd6sOeSBcx9S/5iHZN4inGGYeKmdyYny B/IljWZjCscnw== From: Mark Brown To: Jaroslav Kysela , alsa-devel@alsa-project.org, Claudiu Beznea , Florian Meier , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Liam Girdwood , Nicolas Ferre , Alexandre Belloni , Codrin Ciubotariu , Miaoqian Lin In-Reply-To: <20220308013949.20323-1-linmq006@gmail.com> References: <582c39ac-3099-d54f-5de3-d54a4ace0a04@microchip.com> <20220308013949.20323-1-linmq006@gmail.com> Subject: Re: [PATCH v2] ASoC: atmel: Fix error handling in snd_proto_probe Message-Id: <164676005819.54315.3431589094288420530.b4-ty@kernel.org> Date: Tue, 08 Mar 2022 17:20:58 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.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 Tue, 8 Mar 2022 01:39:48 +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: atmel: Fix error handling in snd_proto_probe commit: b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75 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