Message ID | 20221206171049.3316611-4-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBL7PXWOAMGQEB5EPITA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E3D833F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:11:11 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id h81-20020a1c2154000000b003d1c8e519fbsf2720835wmh.2 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:11:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346671; cv=pass; d=google.com; s=arc-20160816; b=H+FfWyn7bsHr6aKqsP3wpHw+DyjDrzNFaCUAYmpE2cBKyWUaktoBXVWi+z+tTdbV6l aIrV1867VmfZ/onMlYMWAVaFby4j/Xl2ch92AFTTkrNqEP+lMHV6wCmH6oh4TOl4oAap /7bntt8U3n+tMg4/Z3u3l9O2GJDnt8mQiazaj0M81Qw09VOlO3ohkBDadsbXOXqxrOOl LnsbKOLliFIeOzFN5PVDXxGOal/IH1zmjyw2aDe8O9BMwaWLT6zY4oLjCG+vOQZ6TCN+ lxUzW52hEI44LsfzwpmQTSTARUDry+1XFTqDOVt8AIKVPBGRqdqGSz+9MuIamK3XtkgL eaWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pTrLEKxrAR1KmkIf/XmixJhGLcc44BhgYdlOgZ5ULJw=; b=A9zrLt8bNcmJLnVKSatUaYxe35R5/RqnTi2W8yt0+iTvVQ+jzWZ7K9klhEGHScFt+W XBwDKj/FW+6v9vLLOBqaktv1ucP8YmuMlhjMViGQMt0xs8GHKdyy3bVKZDJD45/lOyEN 5tiMu2stPvLPrumghSeWomlOllrn0lhXTtvWljP4GgbLS6clUKpT9La5wbF05lbXWb9U E1/2lAvZq+sFj/kGTFkaMpIBbJPNZcLQteht7GPI1etctCb2WGENC8bKieDR/5hvQ4Y8 7S560EjNCE7ADX3ZrxL3Qxc1HwSemHFYNpRNs6WEZbA1tKxr59V2Ww/aTldW55E+k6XL XYxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=liDhJDy7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pTrLEKxrAR1KmkIf/XmixJhGLcc44BhgYdlOgZ5ULJw=; b=A6gI+5ZcycHBm9Oem8dWwnIbqwHRI0Rsqh09oN30OLert8HRk10T93YOQlnbgY599/ 0CfwB7XU5725sbIC/aPTXlbIyTiYyiZ5gcxOqXoHm2CyKCaELubIFyH0fmWNY/gYQJ5A 1c4KHO2+iKDqOBQN0fwhlZBgD1DeFPV7MQoRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender: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=pTrLEKxrAR1KmkIf/XmixJhGLcc44BhgYdlOgZ5ULJw=; b=zOF20W2jMcIlYjrgwgSXHWBXJ4c144ZcPPJJLJQFljPbpVIdaEl7M7Ry4W5q9ZOWG5 yz5cQ/xXeCnfcuUy9D4m2PgFmORh8dy55Ze3+5OI4C7rCgUi7Ax9VzCSLtUUhBQ8B1nC PFXUcJSOrh7FQMbHfX7SJTfCJCCi+LekFQw2XxWzdYj/6ToD1D84wUapMEC5idrfWvzt 8mVJRpn8qV6/o+dFqEWDVzLjhI64kHNEstiBF7HPC36aZWfP52knUfkdilWs2eL9KLsy wWj+ontxtCEJLTivsWh47mSukUA1CNZTJWsrRgSUs81ef1rQtXfSjAC0qZIJyMFJMW8G X7eQ== X-Gm-Message-State: ANoB5pn5PFj2PBc72WyK49EhQGm9c1uuDMIULdCllvCunAeHTzjr0aF9 yE/DHdhRV1673KxkmwCoJ3grMc09 X-Google-Smtp-Source: AA0mqf6hVDhtzE+SMukVAyZRdEIrRz0cUQRUP8aOUeO9NWgRWQRXf3Vobmh40rOElWELxQ87vxeniQ== X-Received: by 2002:a5d:5290:0:b0:241:cdd4:6925 with SMTP id c16-20020a5d5290000000b00241cdd46925mr47109269wrv.525.1670346671659; Tue, 06 Dec 2022 09:11:11 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:fd87:0:b0:236:8fa4:71d1 with SMTP id d7-20020adffd87000000b002368fa471d1ls145950wrr.1.-pod-prod-gmail; Tue, 06 Dec 2022 09:11:10 -0800 (PST) X-Received: by 2002:a05:6000:1a44:b0:242:5601:90b with SMTP id t4-20020a0560001a4400b002425601090bmr8434698wry.499.1670346670622; Tue, 06 Dec 2022 09:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346670; cv=none; d=google.com; s=arc-20160816; b=dWyY9v/NzwYkZapCqKc8W7Y7QSbBt9FsA6H3CZ39A980Tj+f3reosz3tWTLCgX6WMY K83N6SSC5Gj5EHmUBUxEZDzNjYTQjTCqLTEUgrDdqcZjg8Tk+/xYOVzqLc9YokGGDM4Q Bk/BaKwIhO1N0LINuUDSF7f2J2rOgBZrXc+GpjpgVMiHkEFNTI0Ks1KtTnpxZMIIljMT mFTrM9icd6IodwvmkBUAJclVM1m+/evsbQYUQEQl60jBPsY3Do5XwqFgs4gsD+QfjuG/ 3jOF1N9SjR6nbn7vSkiZJEb5At90tpGGIofhJhN1siaBCRyRypeWCl2oVqOZhiUVC4Hn QY5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=5v14ZTzRH5HsyEn9mY20Ymo8gJAzpokyO92zkSj5WYg=; b=U7jGri/JRL83E4frkAXu3+HSMzgcyG9PPxpE5Mmj7G8ADYTTs2siGja12vD4zmVT/Y tIQZ14f9ItcAZMzwRx6EhlV+CyKjHenahFZSqCaWXJg6xITPNZ+zN9jH/rLOEn4eyj3L oFp3QLRPadFoDLfUulanvk+EPnDFrlnpvbY/28A15YZoVUZ3WaieAsBW3qaLBQF65ZWb Oyp2oz0aBAMLSn+qH0Rfqd0ZnWdFoUTyaKPUksbjRm0VegDcth2Nn8BOV1guFPRvp++B wFKaaaWpMcfOTXHa47zfn9wxgwbOkirJom+iXE67L3B5yZmhudBj9BL2jFOCnURoSP6k 24MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=liDhJDy7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id o9-20020adfba09000000b0022ae3297824sor10177253wrg.80.2022.12.06.09.11.10 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:adf:e98f:0:b0:242:7f7f:da0a with SMTP id h15-20020adfe98f000000b002427f7fda0amr426399wrm.168.1670346670455; Tue, 06 Dec 2022 09:11:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:10 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Arnd Bergmann <arnd@arndb.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Russell King <linux@armlinux.org.uk>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: imx31: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:47 +0100 Message-Id: <20221206171049.3316611-4-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 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=liDhJDy7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related | show |
diff --git a/arch/arm/mach-imx/cpu-imx31.c b/arch/arm/mach-imx/cpu-imx31.c index b9c24b851d1a..35c544924e50 100644 --- a/arch/arm/mach-imx/cpu-imx31.c +++ b/arch/arm/mach-imx/cpu-imx31.c @@ -39,6 +39,7 @@ static int mx31_read_cpu_rev(void) np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim"); iim_base = of_iomap(np, 0); + of_node_put(np); BUG_ON(!iim_base); /* read SREV register from IIM module */
In mx31_read_cpu_rev(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: 3172225d45bd9 ("ARM: imx31: Retrieve the IIM base address from devicetree") Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/cpu-imx31.c | 1 + 1 file changed, 1 insertion(+)