From patchwork Wed Oct 19 08:31:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp228244wrs; Wed, 19 Oct 2022 02:51:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kNUDx3Gu+SrfAICBUzunC73NUw763nIJZ0AgJx/dFcoNFX4YDe3X8PkRug7KfFoPcGw2T X-Received: by 2002:a17:907:168c:b0:78d:8b6c:a209 with SMTP id hc12-20020a170907168c00b0078d8b6ca209mr6346140ejc.185.1666173091332; Wed, 19 Oct 2022 02:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666173091; cv=none; d=google.com; s=arc-20160816; b=R3lpVkJhZfgbrPgIdLJLKpZ2Fa1w85qzZz+q0Wyx+nb/HWRCWm6lijwBR3GqT6xrJY z2N12URPhPaW3qKoN+0tamDLxL3AlfYlPGt3cMCmBisRFJkHFMbtJ4/ArbQKorLdyXOf Aiarp1p7QjBC4gWgzUmyfiV8bD3RcqBTVWKoLoMN0HYws7pMEGaOV9YfqVMpCZJa6rqy z1d8FCV8Grhm76XEJ0iaPWmkawQPUZF1acAuVFLkPF6/ArWO+YN3xfN9vvyASaj4wnes /2ukubIoBiKWqLllHG08LT8Vyw1H1ry+DtzUBKLNUklNT6Ee6s522KHFSC7QJAl8MWKg 1DZA== 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=y9zKNt0Fgj+6W8NaXtiNXEZ5AdriOp709K78Ief3jZI=; b=01jIblElsgPqr3KyqVN1/m0Lfx3ogMbuRaxg5+mz9s1efX5fzr688Rf7o0pMu4AtpO wYBzE/KeSlLF5S759f8BuwNatD8ob44QExgP1/UmXovhCcwY7tHJl9rWKwQEIBIhNAPJ /lw8A+O5Ei5oKXhqILiXfpJh1zMlxI6fIQC3rfJlJ9FFyrGc1xLPrwiwWI82EhBoJ1ps RLbjeA8QsDWl+KCm2C+D/4e+veKQVp5vX7rOQXyevpTGOtk0K/e88PgbS+g+P7gal1Sl qGk7vAgVM4UTT2vh/uwhGO/Qh6lTNHckGX1jSMjM796fEgJPvJz2REz5QUwNmpUklhTo zOzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iNKzag5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a0564021f0400b0045d8bff7afesi6623963edb.376.2022.10.19.02.50.51; Wed, 19 Oct 2022 02:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iNKzag5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234605AbiJSJol (ORCPT + 99 others); Wed, 19 Oct 2022 05:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234785AbiJSJlW (ORCPT ); Wed, 19 Oct 2022 05:41:22 -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 08D28F5CC0; Wed, 19 Oct 2022 02:18:11 -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 39214617DF; Wed, 19 Oct 2022 09:05:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EC09C433C1; Wed, 19 Oct 2022 09:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170314; bh=3a6Ezfk5Xd230UoZ6JDDW0SFulTzd9ZULyx1GhQQxWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iNKzag5TGkzAn78CCI0cqICeeJNg+d6afsgKc6gi576twwkJqcbSVZvCMHycBPlTl q3dDiafnycyizTx5pP+M7gmjESGANqwdHQXqNj9ecWQnRJXFN3FnrnaxsYPN+MQ2ET 7Zn2F1XDjBIhN59flD9Fs08f0ZVN1fjCbW53Odi8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Michael Ellerman , Sasha Levin , Miaoqian Lin Subject: [PATCH 6.0 609/862] powerpc/sysdev/fsl_msi: Add missing of_node_put() Date: Wed, 19 Oct 2022 10:31:36 +0200 Message-Id: <20221019083316.833605350@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747109115405202161?= X-GMAIL-MSGID: =?utf-8?q?1747109115405202161?= From: Liang He [ Upstream commit def435c04ee984a5f9ed2711b2bfe946936c6a21 ] In fsl_setup_msi_irqs(), use of_node_put() to drop the reference returned by of_parse_phandle(). Fixes: 895d603f945ba ("powerpc/fsl_msi: add support for the fsl, msi property in PCI nodes") Co-authored-by: Miaoqian Lin Signed-off-by: Liang He Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220704145233.278539-1-windhl@126.com Signed-off-by: Sasha Levin --- arch/powerpc/sysdev/fsl_msi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ef9a5999fa93..73c2d70706c0 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c @@ -209,8 +209,10 @@ static int fsl_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) dev_err(&pdev->dev, "node %pOF has an invalid fsl,msi phandle %u\n", hose->dn, np->phandle); + of_node_put(np); return -EINVAL; } + of_node_put(np); } msi_for_each_desc(entry, &pdev->dev, MSI_DESC_NOTASSOCIATED) {