Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6868068rwi; Mon, 24 Oct 2022 07:06:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tgMASg7B+5/mpoZ3RCsrXP33NoBL2Asm4SkA12mMkcWeCKpAQnFHm2P7xz7oRNQ/wZWY5 X-Received: by 2002:a05:6402:3588:b0:45d:7d14:baf2 with SMTP id y8-20020a056402358800b0045d7d14baf2mr30497010edc.1.1666620364315; Mon, 24 Oct 2022 07:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666620364; cv=none; d=google.com; s=arc-20160816; b=r+nCVUNd2Vt7T7Ok/n/SDiIOEpZs4AmI0L9PY3IUUUk89FKKhVyn98U7ZVksgKtd5v AKWnZ5CQNqzmEBS+ChA641Q/D0QeL5RRADCOeKtJ9QjURTibHu6Y6vkhwz+7BNTWbtkq Gy8lbIcXd67gR7ZxjD9fcQYC6c53J1IlIyedc+33i3lT+BNN70CsCU0+OYYo+x4YzMzr ufJxKLI5wmrFMd3xkvgooB4kCY9dIaBcfmVPxCy/z2EiwUT2Kine4Ci6xS0VH+HAQ5hD rLR8SFhoqVjj6ErI4vBZessecnSNwJgo4aBeOY+E+tVtbc1zM5UV7+raYQeD3Z0AV3PC bMvQ== 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=WDkDKj1O7oO+OvaWK7i6FwljzBGiyQ9jC5kcyFvWEK8=; b=Mb2b7C9vBMc4r4UqVhE2Qy9+5j6WtO0epL0o7GkkrSAOolzi0UYUwKzsROhcaMBCyn 8742P5lvMImH8exYqILFFE6lgfgqx/PN6RafOGT0CUfZns2aMnwajmGdNZ7qrlTUgdOo AE6riy2vbGlWO60xWP++fVk1Pf918gEIehkfA0u0ZGMjcVA1VAnofCQpMf64i9QHF8wy fxwTYQAr8Mex9mCVdjk5jgu/SnNCmKsjbgLO6zZcFoc82QsvixMadheSREELJ0r+uPkt Kmv31DMQZWIqRgi2nJVll4TUvXQsY5FP3Rj6KonK9nEuAqhLwxaAx8LbqVGS5Q37oiK7 +K4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pISd+Wqm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu13-20020a170906eecd00b00741a0720a2bsi30685571ejb.814.2022.10.24.07.05.38; Mon, 24 Oct 2022 07:06:04 -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=pISd+Wqm; 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 S234251AbiJXMmm (ORCPT + 99 others); Mon, 24 Oct 2022 08:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234681AbiJXMk2 (ORCPT ); Mon, 24 Oct 2022 08:40:28 -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 717CC8C478; Mon, 24 Oct 2022 05:08:19 -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 63C2761280; Mon, 24 Oct 2022 12:01:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7886DC433C1; Mon, 24 Oct 2022 12:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612893; bh=/1DW5WW1xl+F1DQUELEVGXcIOZpqadrzRHptiXSg1bE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pISd+WqmQlRPKoEAcQkrSMnipOd0pbNnM3QeBE5VBsLMMHl2C8w4hCkE0rLouvh0L 9dwm4vztcMHCNzDk7oCccjPT9oRZCacrkItHvpFsmAfHx3urxVDXMONj6c9b25v2Ln jV+dmjKQb86nJBKCUrFdpKt56leycrSy8KXGigKo= 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 4.19 160/229] powerpc/sysdev/fsl_msi: Add missing of_node_put() Date: Mon, 24 Oct 2022 13:31:19 +0200 Message-Id: <20221024113004.174029483@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 df95102e732c..44aedb6b9f55 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c @@ -216,8 +216,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) { -- 2.35.1