From patchwork Sat Oct 22 07:26:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1140292wrr; Sat, 22 Oct 2022 03:25:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Pj5DKnUOHouF08rmBC63dcfH/k9q1McxLHCwgno8/gksxOXA4yWskI6p88IsG6g0aPBlf X-Received: by 2002:aa7:c78d:0:b0:454:fe1d:8eb1 with SMTP id n13-20020aa7c78d000000b00454fe1d8eb1mr21466206eds.59.1666434300395; Sat, 22 Oct 2022 03:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666434300; cv=none; d=google.com; s=arc-20160816; b=h+MNB79xjTKg0EHlx4/3hVNWUk8d8NfGrdIKiuk/l2wjUryf1s0lDzNi5w2h2nGQTF M+PY3bkeN9e3w9Q/eCXvtU/8McDJTTkEK8RQKa7sKJp3WfqR/wYjbiwiU5xTQs0nGVQj qCnitDXoMgZWBsXcpb14sI8GAkk+zz5xNGZW/hU1z1KogpqlUJcYMhQO1sQ+F6LJB4ls vQgYDgUYkj730RH0TRgCy8zsZSsDaa58dM/ySPTAKkgEcZ90MjLOidv8zSSHjVEEIROL IYr4KjZJwCAhFd+sQVvnelv+Rf/aPygeTTTmTleUxqwDos/TUyAoydmdkF4gdTTdtR4S EK3Q== 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=LBV1rLLXjI8VKJC14/H6uIVerVBWCmqcMvI8XU3n4Ta9OdGTrAwCCdmzQaHaAtFla0 ZUei7j0kP0jEQxm0TI2NtHsH0ur05ViZ2fqPCtVhaKlHwMxEvspOVmab+veRynw1gFwo YS4AGqzZfxtnmb+3f+ggbbZLfmiKyRaA9LjqHcpa4OUCDsmQAhjssVISwTekoqs+W7Du PzE8gs9py2UG6DG0UyXKPzfZ2ewAHONOTJsJ80RpB4Bm1s9VcGD3BB20pAsEJgXRJuEY G1qtMzpO1En+IJaIpJdigxnuLWRUdNmlt59KIeQd3vr85vPgu07Nr27sCjG7t3no7W5x p9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zzPUGc8q; 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 m24-20020a50ef18000000b004615b657cbcsi2662083eds.190.2022.10.22.03.24.36; Sat, 22 Oct 2022 03:25:00 -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=zzPUGc8q; 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 S229574AbiJVKRo (ORCPT + 99 others); Sat, 22 Oct 2022 06:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiJVKRV (ORCPT ); Sat, 22 Oct 2022 06:17:21 -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 F087F2EA8E7; Sat, 22 Oct 2022 02:34:03 -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 2E7F460B28; Sat, 22 Oct 2022 07:58:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24249C433B5; Sat, 22 Oct 2022 07:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425512; bh=3a6Ezfk5Xd230UoZ6JDDW0SFulTzd9ZULyx1GhQQxWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zzPUGc8q3jcPb9/C+R0CxzcdwJLrmX89NkHKmbj4pEbRucLn8ppJDrrT9O6s8aHJU jdqf8A9ZN881SGaVmyvFSUhj3/mr2Nz/bXhn+UHtStwWEhxZq73Tibbk7zzwFjT3f0 q01Lmy4Ysc5QUYL8H/cTi/zPsUK50QMmcY/EjPDE= 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.19 495/717] powerpc/sysdev/fsl_msi: Add missing of_node_put() Date: Sat, 22 Oct 2022 09:26:14 +0200 Message-Id: <20221022072520.158922735@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@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?1747383012833111301?= X-GMAIL-MSGID: =?utf-8?q?1747383012833111301?= 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) {