Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7742863rwb; Tue, 6 Dec 2022 09:16:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4FpYP6xO2GMFrZU7dyRy6czruoDbz69/tNmQoX1Ut3o2010Gu2a4hZwTrC2vp70tlH0PaQ X-Received: by 2002:a17:902:d718:b0:189:d141:f4eb with SMTP id w24-20020a170902d71800b00189d141f4ebmr12318565ply.25.1670347017564; Tue, 06 Dec 2022 09:16:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670347017; cv=none; d=google.com; s=arc-20160816; b=vwpVF3Z4s8mi76+QdDAp9jIDgAbv+IFkqo7VqYJ/Xk/f7iLMNs08p586WYnyEJYqXL vmrlS8MyMiPnguiCPSHpOE5uGUyrEG/fAYs2IlgRZlO01aTgzqVuxtu97dv7rPftNBLY RXVXr2Q+Mf71lEFBFcmCRaICVSJP4YnLSbym0NIgwlAxH3KMurxzWtbzSTOfLNByJRAa qpnVRqlLT09k0oWNSHF5/tLHKYw9CM/HYhUEjrS2ee9eV4zIK5ziS/Qisc391XNdrWFl FImBF4FhqJDBkVv6UCF0TDP22eQ1KkLLXzJiVTnMwAvKuL0jbHd48fP2rxOzhtGnCDM6 BGzw== 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=JTKzSC4xiELtOhvYcPg625CE+pmvLexXVke2DqyU21Q=; b=ul39EHQsOkvdSy7TSGzmxvVUd0lgx9YsDtJWpUC4RyFzGi3aTOgIA0FpmIHQT/sc/C f4L8fLDoaqwjimJC+pKiLyS+Ej5qscKGfcbZnnXDylzMS0PMVw5F8kFdwTU2ZHtbZuXL 640/2xwaQBuqr116fs2kTJ+gbHjNKkc7axCnT4JLeb/6U3kTpfQEA0x6bi5csJ8LpgDZ 1A69UlbB1Ii6XA7Ukl53iyV7k0anumntJwR3tOGx6hWJeVrwuJftxyJFoLsANLcH8/+w s/il7ZJv6Yfl55RhNGUBPrLFyNdK5F606AP/QPJL0qj0DQDWROdVk2LhtHRXsTuJCVMG cjjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jBQD+O7X; 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=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a170903240700b0018907d64909si17713877plo.325.2022.12.06.09.16.46; Tue, 06 Dec 2022 09:16:57 -0800 (PST) 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=@amarulasolutions.com header.s=google header.b=jBQD+O7X; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235663AbiLFRL3 (ORCPT + 78 others); Tue, 6 Dec 2022 12:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235486AbiLFRLP (ORCPT ); Tue, 6 Dec 2022 12:11:15 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C61F2D76D for ; Tue, 6 Dec 2022 09:11:13 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id h10so14889574wrx.3 for ; Tue, 06 Dec 2022 09:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JTKzSC4xiELtOhvYcPg625CE+pmvLexXVke2DqyU21Q=; b=jBQD+O7XNs5SbP+46Ou8Fyj8CECu5cE2sdTpHJmBujn+wNPZOhaoLoKc0GCA9Gwq+G 1W76vEZ8MT1Ki6hKHJmSamfFN23/9WUPMg3FLo5RE+CBZw8/MKoEOrQcCBc6raTMcr6m awNNnOPDL1KREISMcuOhPUhoWkJRWzRXpKnqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JTKzSC4xiELtOhvYcPg625CE+pmvLexXVke2DqyU21Q=; b=3Q9N77Shutp1fcaosCr9SGmYFtFvPUeCmHFvDxVZ5XXfHyl9SaZZaIB2hD2JA5/lKC zfEHT6ogpU/12TlSoKussdEcsKkJG9CN48duhKMPGxMAHwNvWha3T/Fzg/lZK2a3zqC+ oh81uYgUcA1vxoxm5KU4sVNLBjBL7bEs+ujKwvIdLWLOi9Rsl5wPnQlGcsEFwy4OmqzV bLN+Nra53HEvSPnJ+UCPQeo7Qt6g9rnGZD/FydNYq2S+xJYhxmddVCo3dvIY+nbGkjPD 1IkVdbmYHNO8Cs9zkncb5YkG5kACPO6RqXBcWWpx0AKdVbvXsWlcLTmoj1wjo7BuAf+6 GUAA== X-Gm-Message-State: ANoB5pm/f1PLurEQkM4SaInWqu1ip8Mt070TwLIt+bxwZpf1FsU4jxeb l63NfpRFmJdYSdth5PKVrbzfCySQDmybOd2T X-Received: by 2002:adf:f54e:0:b0:242:1534:7b57 with SMTP id j14-20020adff54e000000b0024215347b57mr26622429wrp.404.1670346671934; Tue, 06 Dec 2022 09:11:11 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-82-54-95-136.retail.telecomitalia.it. [82.54.95.136]) by smtp.gmail.com with ESMTPSA id k10-20020a056000004a00b002365730eae8sm17298534wrx.55.2022.12.06.09.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:11 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Arnd Bergmann , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: imx35: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:48 +0100 Message-Id: <20221206171049.3316611-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221206171049.3316611-1-dario.binacchi@amarulasolutions.com> References: <20221206171049.3316611-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 In mx35_read_cpu_rev(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: f68ea682d1da7 ("ARM: imx35: Retrieve the IIM base address from devicetree") Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/cpu-imx35.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/cpu-imx35.c b/arch/arm/mach-imx/cpu-imx35.c index 80e7d8ab9f1b..1fe75b39c2d9 100644 --- a/arch/arm/mach-imx/cpu-imx35.c +++ b/arch/arm/mach-imx/cpu-imx35.c @@ -21,6 +21,7 @@ static int mx35_read_cpu_rev(void) np = of_find_compatible_node(NULL, NULL, "fsl,imx35-iim"); iim_base = of_iomap(np, 0); + of_node_put(np); BUG_ON(!iim_base); rev = imx_readl(iim_base + MXC_IIMSREV); -- 2.32.0