Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7793235rwb; Tue, 6 Dec 2022 09:55:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf62Mj9IuLM6hKYoz+YwgIbUZNA41zJJMlpoUClIuPKAZIlJ0bX9yLY8bTiE4OGb07XnMKCG X-Received: by 2002:a17:902:db10:b0:189:5858:43c0 with SMTP id m16-20020a170902db1000b00189585843c0mr61090276plx.71.1670349357411; Tue, 06 Dec 2022 09:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670349357; cv=none; d=google.com; s=arc-20160816; b=GyrFCq0wJtDh06ZFmKOQkB22E3STNgKyxZBu4Xj/9q6VUp+/t7xOULaJ/6VlHeb45D eFLqOiVcCLcZFJseg1WEQcZMWFFYPrinG3a0ZfxbHfIRed9erB+f9nHag7STirLIWVLo +cawWRV9VDswGoVTnh++weD8hDNruEFV5DCHVuDwVswIoyn5acuXJ33z5hKhoXxK6G9w V5UZQ7O+OiY8AixDbALPP4BVAVZcWrFoGzyi3mQJ1dcevrjaTld7rP3WB+kEHKmN7fKQ cksMChdi6Vhn/zyuqtLeHyhnA9QTtaEaH0xupftK+9jZnkFvr7LXCuknVsYQUaQCS/Hp pB7g== 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=isZl4Ib1GW4IZeJsKLQaicOT0yx6KllCfAA6o2HK4Yo=; b=w6zY0mMlEG/umTdVO1lrFEBVNNcVAYvs7SpgGiM3F8kPKXOWzxAgj0Hjl58eLcCOin dsPAXQU/N8t/S3EnMzFtDDY/ny/sOSF/beIPpgbluALdFckhfv9R/p6TfU33p8lotU1t Ag8X9wVxHmudqz6fcKQabKYYCKEYglpj/USH5uDYG00/f+uLM/eeY220iB14lsLFsDlb n3MCly/6r9N3ceg0DuCsDkyoadcFnZX+b3OGCzSB5KWXeQ62nn/DXLJFgHsPvn0BuPzQ 5gzMW8Q+Ms5Z9eAFcGOAFWP0GgfXjLY7CHV820aj0TDmrg4+eOLOHF0fmFYh+c0TTz/M fN4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dEPxQkXm; 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 b5-20020a170902e94500b00189907c6b9asi5457016pll.302.2022.12.06.09.55.47; Tue, 06 Dec 2022 09:55: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=dEPxQkXm; 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 S231168AbiLFRLh (ORCPT + 77 others); Tue, 6 Dec 2022 12:11:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbiLFRLQ (ORCPT ); Tue, 6 Dec 2022 12:11:16 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0C9F2FA79 for ; Tue, 6 Dec 2022 09:11:14 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id u12so23473026wrr.11 for ; Tue, 06 Dec 2022 09:11:14 -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=isZl4Ib1GW4IZeJsKLQaicOT0yx6KllCfAA6o2HK4Yo=; b=dEPxQkXmaa3Wz4HA8Yfy4fjbqIBuD8Ml8aDTOT+KBrwUbxD+kTSbbJTMFiCypHQQy0 EdWFSrsW0nLMoZS9mdzEuuPi3t0rCF2jSEWf661q7y6nP9OosPtcKIxPFfr2X2iiPdMZ isoMpp4rHtsiKXLJ7En2CQMGDu3H0HQlGE5as= 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=isZl4Ib1GW4IZeJsKLQaicOT0yx6KllCfAA6o2HK4Yo=; b=AG5cPkRdsFLGtKe+bvyJL3nUAAwnAo2bkWZgH/aFhbylwyHnQGAwmka+9KBvgM9mFP dUaHq6sLDamp6budJF6bhfXdQm1KpuM4gC6NAEFnGbHdsq3P18wucXjlxlpWXOllaVWf fNSoVEyAqVCWgPYyP7UNKOPYMIfZPkRRzYjzJ7iEsiy8XX1i5fa1iqbOLZNRGQkMJQbz uRJAHQkAxCdQ/41Su6lcH5/rVRAnw+XWRhHFC8bH1SQIMJr7QcYHH8tIb+6nFJ13rh5N gicdhdAQby7sOoex+rtgoV/rW9McQw2AkOano4RpoUjB5uixbof08F4/hCu30rkus2J1 pmYA== X-Gm-Message-State: ANoB5pkZ43BkiGDC9Lb4M8y4CmREOi3AnT9O+NK6Rlg72vf2FtX5QJvd hyRlIQZB/Ptc9A8BWDCt93Lm0SkNmqAThTCw X-Received: by 2002:adf:d1ca:0:b0:242:fce:543b with SMTP id b10-20020adfd1ca000000b002420fce543bmr28536302wrd.244.1670346673302; Tue, 06 Dec 2022 09:11:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:13 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] ARM: imx5: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:49 +0100 Message-Id: <20221206171049.3316611-6-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 imx5_read_srev_reg(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: ee18a7154ee08 ("ARM: imx5: retrieve iim base from device tree") Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/cpu-imx5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/cpu-imx5.c b/arch/arm/mach-imx/cpu-imx5.c index ad56263778f9..a67c89bf155d 100644 --- a/arch/arm/mach-imx/cpu-imx5.c +++ b/arch/arm/mach-imx/cpu-imx5.c @@ -28,6 +28,7 @@ static u32 imx5_read_srev_reg(const char *compat) np = of_find_compatible_node(NULL, NULL, compat); iim_base = of_iomap(np, 0); + of_node_put(np); WARN_ON(!iim_base); srev = readl(iim_base + IIM_SREV) & 0xff; -- 2.32.0