Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp205459rwi; Wed, 12 Oct 2022 18:43:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69CKlfDtS0+UavS1uZoaH16jG0yFVaxSj04mr0+1tcqoG+UlFrNJ25NFgaaVzSZg1PaZoQ X-Received: by 2002:a17:907:3fa3:b0:78d:d11c:389f with SMTP id hr35-20020a1709073fa300b0078dd11c389fmr9604725ejc.415.1665625406223; Wed, 12 Oct 2022 18:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665625406; cv=none; d=google.com; s=arc-20160816; b=Qq7jgtjG5eERBKu5I2FROYPRMy6NbHBAH/K6uqXPXO/aTZk45lqZI3q7T8U5jeeUhS VgtmN9RYWog2kP1lUl+tQFVxYLF7xHBKD+QpUZ+ktNZpmJtXRZ7djfNefNnSOaLi6urs 7HzA51iuHXy+qBuv7QXaxlAhw08Wpeqghrk1P3eQovhv5Q5/yY34OuAaUzZ9rZP5Clcn bivBEUopoHCjT5mItQ0lTE0SWRrVrXFijt42wCZSUTXNpJ0L9gSznoQ9IOtz6zCOcLbL hCPnaREN83N8SO45xaUrOPiHrnILFCfONm3mvGDXmjR5iIn2C80e23zKp/p/+OEbt4p7 AqzA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZqkUbhqpgmEBwlazX4EETBQZQDAJn/bCIlmvwCWqRG0=; b=GTmiouutwjz38agE7Jt7S5j4+QzxFe0+79Rj/4CbimOo9G4P10kaRc9d3EC+gg8yFD Yf+6sfyGA4+ASPUmVFfADjdb/PtDQEMf0K+ejCNi/2Ai84nVYgxG0eH/GxLbgSzTtFy2 Nw3Rcd7q4t7oo3dclHanEsrZVRR7F3K3xJ6D44GrnArjTKr9dgk2uktxzUuQVSRJcVvR ow4BOuxZqxqkx2hVWYOBRMhYqTDwuPqVEjiaVbNX9mj1wh6BQwUgST5/2hp/CK/p4pdz iJXOfB5UqnAg30JAWlLQykLUdup4mB+Oajivj+CPPmWfkcR85mZkbo8uebVVEtkysC34 o7ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vO4Ed1nf; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb9-20020a170907960900b0078db6f5f499si11180275ejc.796.2022.10.12.18.43.01; Wed, 12 Oct 2022 18:43:26 -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=@kernel.org header.s=k20201202 header.b=vO4Ed1nf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbiJMB1a (ORCPT + 99 others); Wed, 12 Oct 2022 21:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiJMB1Z (ORCPT ); Wed, 12 Oct 2022 21:27:25 -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 1DF801903B; Wed, 12 Oct 2022 18:27:24 -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 B1C76616E4; Thu, 13 Oct 2022 00:23:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47BC8C433B5; Thu, 13 Oct 2022 00:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620602; bh=Wn3oSxO3heTPfc3NTmNAvwL+9w/ee0D9B9DE8PlDHrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vO4Ed1nfWG4tSJFyE7rrVaLDbY2U31qWTKIAOJNUAeYt7C6aCUz3uQsH3d7D0GrnY kUZf4ZFA+1x2QUrYXU1IH9aHB37rS8ZXwev1yC1yvj4kR2UWLTzq/5DdLKnToPAzTL CLIolZeF8pveJKYoaqmElzW3nrVioZoPhK5S3eH4f11RfIFQdbX4TL5vxYrF2CXo8w YimQk2iGv9Qjkqdaoc85qRet7jEhmsw66Unw5PcL/xxc8uRduITxcDoTF3dZOp6NGg VwAym/uAkcnWqasOxMd/BUFvILzKyQyKze9yjEhzgQ9V8M0Ab8yez9NA0z6JM6LqdE aO27/BeshHqOA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lv Ruyi , Zeal Robot , Joel Stanley , Sasha Levin , jk@ozlabs.org, linux-fsi@lists.ozlabs.org Subject: [PATCH AUTOSEL 5.15 44/47] fsi: master-ast-cf: Fix missing of_node_put in fsi_master_acf_probe Date: Wed, 12 Oct 2022 20:21:19 -0400 Message-Id: <20221013002124.1894077-44-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221013002124.1894077-1-sashal@kernel.org> References: <20221013002124.1894077-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: Lv Ruyi [ Upstream commit 182d98e00e4745fe253cb0c24c63bbac253464a2 ] of_parse_phandle returns node pointer with refcount incremented, use of_node_put() on it when done. Reported-by: Zeal Robot Signed-off-by: Lv Ruyi Link: https://lore.kernel.org/r/20220407085911.2491719-1-lv.ruyi@zte.com.cn Signed-off-by: Joel Stanley Signed-off-by: Sasha Levin --- drivers/fsi/fsi-master-ast-cf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/fsi/fsi-master-ast-cf.c b/drivers/fsi/fsi-master-ast-cf.c index 24292acdbaf8..5f608ef8b53c 100644 --- a/drivers/fsi/fsi-master-ast-cf.c +++ b/drivers/fsi/fsi-master-ast-cf.c @@ -1324,12 +1324,14 @@ static int fsi_master_acf_probe(struct platform_device *pdev) } master->cvic = devm_of_iomap(&pdev->dev, np, 0, NULL); if (IS_ERR(master->cvic)) { + of_node_put(np); rc = PTR_ERR(master->cvic); dev_err(&pdev->dev, "Error %d mapping CVIC\n", rc); goto err_free; } rc = of_property_read_u32(np, "copro-sw-interrupts", &master->cvic_sw_irq); + of_node_put(np); if (rc) { dev_err(&pdev->dev, "Can't find coprocessor SW interrupt\n"); goto err_free; -- 2.35.1