Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1017192pxb; Wed, 6 Apr 2022 06:49:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMnU6rnatqtxzEVdRKDig69vX5Tib/mgA5eBNUGZ+MzoXHr5oy8Q8O5FiQWryyXlXV9/dD X-Received: by 2002:a05:6a00:2124:b0:4fa:739f:2386 with SMTP id n4-20020a056a00212400b004fa739f2386mr9053234pfj.68.1649252976251; Wed, 06 Apr 2022 06:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252976; cv=none; d=google.com; s=arc-20160816; b=UL3XMUAI1ZqLsEnZbDR8xWwhMEk76bOhCS+NGoqBVW7BQ/k3Es5qqYkwUvq+f6gCOw lFgvF2ug/FY5dM2tmTDO3L6QQ9CORsOUEKs0PbUSp+FTblV/WpCbsURaW6OeNb/+JE9s ctepkWyMctl7Ku4+pDSBYRJ1M2awhFflu2aF0uhi8zIizFx8TXgfzCZOUqYuC5tYI5RD rut3o+BQjvWI8atOZ6V2XbH8P5MCuJR1bHcMH7qvYRjn2UBjeeF/yZC3gFQXfBpd/Ff2 VLzUTNzOF4b+bzoocVCW6KjBO8kty9lVDIJsSuVZAvXJ7YplfQNTT4COfiYvrjFOueHp ehSg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KNpio1GXkWlcMeCQQwSEcCDeO0ER6lu6wKTgKE3VC08=; b=Otx2AqpLGd4df5DR+lY6d6+wneDG4oHBNs0xwRhXECX+I1KX6xe6JNnfP2jnfQV6JP iL1Bcdtuw/PsgIrejE0WVXlTO5CqXXx5dK8PGvYblCS2GAROAil5yUx88IX8BzzUlNwK AF3uxU4W/wu3foGDioeNtUSLg6ydo4ea6LZXmOiUvv0+g4cUNTidlJRmiiNeh0xOfHz9 Q737xxvIwkfUMJ6SZ9uDVDkKQz16Pu7FdbqUMGLIq9Zsrs++Z+aBNowKoxvoNjwhg8Kw d1/CvKdopOHk4iSZeHCbjOCsg7n61SaBXJLAFj3u/f5ibeMHbTt+s1V2xnpFN2T3VYw+ EP6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=paMAKHRZ; 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=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t6-20020a170902e84600b00153ba5786bfsi17584797plg.437.2022.04.06.06.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:49:36 -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=@linuxfoundation.org header.s=korg header.b=paMAKHRZ; 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=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAA512CDBD7; Wed, 6 Apr 2022 04:44:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1583069AbiDEXvC (ORCPT + 99 others); Tue, 5 Apr 2022 19:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348595AbiDEJsG (ORCPT ); Tue, 5 Apr 2022 05:48:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A7625FE; Tue, 5 Apr 2022 02:34:15 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EF939616D1; Tue, 5 Apr 2022 09:34:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 064E1C385A2; Tue, 5 Apr 2022 09:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151254; bh=tCRK5JOcnZrv6VCnTAEkt+Ni/+cwLKY96V9qbg3K580=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=paMAKHRZ/PDJcHS4yiMpLV2oGlgT2Qs8kDY+sEOQAPo8f+Xn/0kxy8lu0Ox370U85 D4qNkKpsa6GZHa1JFRqJ52O5GZ89hRnOMj78LJ1dGj87jSIvxRxtZ0sTNjfT2ZErgp Ehj0u21lZaVjjdlX+meqnU3QnmnQUi8DS4UpNXhk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Codrin Ciubotariu , Mark Brown , Sasha Levin Subject: [PATCH 5.15 349/913] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe Date: Tue, 5 Apr 2022 09:23:31 +0200 Message-Id: <20220405070350.308008793@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Miaoqian Lin [ Upstream commit f590797fa3c1bccdd19e55441592a23b46aef449 ] This node pointer is returned by of_parse_phandle() with refcount incremented in this function. Calling of_node_put() to avoid the refcount leak. Fixes: 531f67e41dcd ("ASoC: at91sam9g20ek-wm8731: convert to dt support") Signed-off-by: Miaoqian Lin Reviewed-by: Codrin Ciubotariu Link: https://lore.kernel.org/r/20220307124539.1743-1-linmq006@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/atmel/sam9g20_wm8731.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index ed1f69b57024..8a55d59a6c2a 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c @@ -214,6 +214,7 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev) cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); if (!cpu_np) { dev_err(&pdev->dev, "dai and pcm info missing\n"); + of_node_put(codec_np); return -EINVAL; } at91sam9g20ek_dai.cpus->of_node = cpu_np; -- 2.34.1