From patchwork Mon Oct 24 11:31:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp531170wru; Mon, 24 Oct 2022 09:06:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5aK7LFRfbPMTM58miFK2S9X86v0c1adDUhrUL4Su5CdpmmyxUijwDYOle8rBviyWc4EcQG X-Received: by 2002:a17:907:7e87:b0:78e:2dc3:945 with SMTP id qb7-20020a1709077e8700b0078e2dc30945mr28518152ejc.326.1666627567159; Mon, 24 Oct 2022 09:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666627567; cv=none; d=google.com; s=arc-20160816; b=ShQzItKB4966YKXHoxTAfEiHQ7lm9q/yC3Pu2oNAiLyZKJtK7NM6t3QlAG1BzuGoSa v4o9ISWhL/cmuT+BjMSL7CFs4CPacoy0WvI/L5oJy4ZSmnoDaMNLd9KnDGHc2A7+zmFs rriuyHtZ1tpEbzZAacEegJ8K03R9FzBZt+r2Q53NUAQ0/FLF3veL+j5VL73uBKMjmBlk BCkMCybHMuocusQhVuRvKwdPFpQajiO2GrtMumttIe8flY32a5MSTS8dloMMu11IWm9w 6U6iOnh3IzHbLuQJ3mVaR0GSk9FtW6wAiDBO8D83zljRX9hOiwg2faPSYGYkiOUnM436 qjBw== 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=RROoPqgo4uYddrnJLfWkSH89+kTVk+4o2wIEmEt3e/w=; b=VRfiP3yXuxpn7cfuhg5CUNk1ds5GvZ/Wa78BiGrP6wNuz8483Qfb7pWtRiRa14KxAB G0eQPyh0iWgrjUvG93T5bhv5xxM48L5BFFnEwscacDEzr7EL4014LmIkimHYXky8R4K9 iLAVuJqiL7Qm85mthAq4iaVBa8yAsjooqbXsArKJB0hXHqITRTrTo89azpC4S0A3CXkk xRoJbvEEJ4UIkE/nX9mtcmdO9C+7qP24KLDy+k+u0Ror9o0IGb0RRCUnO76JxflNtN1g 31UDAenV/q6drt7un7VcmyyAeWL98D15CmGIVV0I4g3fkfINUviwYQp0WnOfswu4jF3B AeUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eYEC5txF; 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 u8-20020a05640207c800b004617df75676si143896edy.245.2022.10.24.09.05.41; Mon, 24 Oct 2022 09:06:07 -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=eYEC5txF; 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 S232834AbiJXQDp (ORCPT + 99 others); Mon, 24 Oct 2022 12:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbiJXQCd (ORCPT ); Mon, 24 Oct 2022 12:02:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 279B8115413; Mon, 24 Oct 2022 07:55:42 -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 9E596B811C4; Mon, 24 Oct 2022 12:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 038DCC433C1; Mon, 24 Oct 2022 12:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614447; bh=FpXhnLqOG5Yvh/g9j3Y6llbNQVhcq7oq+QMST9zMdbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eYEC5txFK/haofjp+RU6au5pStmmcZjh9p9GJCxrK+6aJmJ1F6i6dgzAbpYI0MfLb htLzCfe/OldawfMhhsOHXZ6dNA9U5QccpWdv/UBLETd05SNOBwy41nOF6/qTUHSzEt ttBoSC9580czCNyf423X2GEpYypm2jx8zZ/NWQKM= 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 5.10 265/390] powerpc/sysdev/fsl_msi: Add missing of_node_put() Date: Mon, 24 Oct 2022 13:31:02 +0200 Message-Id: <20221024113034.188404880@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747585668179281090?= X-GMAIL-MSGID: =?utf-8?q?1747585668179281090?= 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 808e7118abfc..d276c5e96445 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c @@ -211,8 +211,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); } for_each_pci_msi_entry(entry, pdev) {