Message ID | 20221206171049.3316611-6-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBMXPXWOAMGQEAP7RDUQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E079F3F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:11:14 +0100 (CET) Received: by mail-wm1-f69.google.com with SMTP id c1-20020a7bc001000000b003cfe40fca79sf5883262wmb.6 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:11:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346674; cv=pass; d=google.com; s=arc-20160816; b=Su5OSLgMG2yev4bRhi5GlSBMwiFoE68iRcVF5sZhKz0aLjNHR7wi7TVmdzrutHmFS6 OUqvg2uT5vEzx53Rbqv3mzjvCDS6QaZNqoQ2rUb12FVXBvicrxQsfeedJJYDHD4LpXlu mbiG0Rt6TC1zfkkCYVScj/5CWfEGlm8jVDuauwg9xDqyNG/ky9t/xTV6kehptL/f+vOV sxyio1oEr7zqOdQ9RUm8BIWriiQbQTJcPpRijbLgBjzuqQYzRIe0soJZYEgGWF6dMUTG QFglqlj06U4thWWsNZTTsupLBOVjzkHBWle6CTYFzEz2+Ij56zzMXdX0GN3y+eqjKAfx SLUA== 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=PBfLSJwrDGNjKD0tNlAzu8x7uJqMwNyFL/U3UgUR3l4=; b=gDQCG7AYc80GPkx2iDZzVW5XSm3Au5eP6IgRavF1zglLWYFGF9L7Ku2Aj45LWoLHSo a670VUaKrcOmyAPgWTMAqvKsj+TZI35pQiWmiTCtNanu7rukDDpHDMmycZVXRkCjVdhl e7qbovjZfIXXpAd0BNeOX/EtKZ3kbgUeSu1UKhWa0n/xDdDPfJ10L0/39s7QtMjwee1Q cj7eOd7jP+aylyC0p9pIYX9K+UoY1vzunHFqucV49cQ2b3Y1ZoXWvVP+DbQ/aq+ZGmXQ NFQKoomRTinXg//3UW6LcYDwGbQOtM4iu3TaFTUYsvHrc/xczTRZlVUAlz+IMr/UxxWh 5uBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dEPxQkXm; 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=PBfLSJwrDGNjKD0tNlAzu8x7uJqMwNyFL/U3UgUR3l4=; b=QHSLbNSiRikVhnz5PmWCI+ywziWDHR5KsboP4oUZSatPoHAJPgAyIf48qio8L0l0K9 cEQ0REA9UgEbP3CPhx6DuZh0Gka1Q44Oj1ALLJqFgzrDQfeBzE5wy+utlQaMpEvKUsO8 IKZox5AKNpn/ZFRgq2HANZu7OiImvYDmfidvw= 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=PBfLSJwrDGNjKD0tNlAzu8x7uJqMwNyFL/U3UgUR3l4=; b=pOYYxQ8FIyxUlLWOCfmRrv+HZE2f7a5KYrPAtj3pMoOvoyEvMUOXC6xOwKpX9vPNC+ ZJtvc4xblBxWuT56xtD1QUeC2gYStY3YBG/KTcz7UJqe/YbUEILIpw6r3bl3RT3/gjB1 7qQgq1urVzX8f+gCwHz0wKnkKqXzUga7rXnqR/cGFu+Piuh06sWpkzM7h/h0FxK/ZD01 ZPMdlm9uG1akoFZKzXRKui8u82G02A9QWGZxgMzo8741g9EO7zwlIjJODnQzKbmG8Ysg E1LXQjpu6zCbpVMEdogeJNqPUlCNSopoVxPpPInyaaXMpBMTFDmCxwoX14waUBMmCNzU ajSg== X-Gm-Message-State: ANoB5plHzmGxI/DGNXuVmUCyX1Z0EhgnxqaEYNdXObWl5+Wo9kmpSfus 1udASxrhtFrr3k45txdRVRChmKpz X-Google-Smtp-Source: AA0mqf7A4HLJeN/s85JzF2mn3ATY6d+EBfPMZ3QIBGXQnJ1sfEm7WAGjojLgFvL+2Td2aO3LDJLj0w== X-Received: by 2002:a5d:4d51:0:b0:242:1bad:6f79 with SMTP id a17-20020a5d4d51000000b002421bad6f79mr24614744wru.342.1670346674545; Tue, 06 Dec 2022 09:11:14 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:5a0e:0:b0:225:6559:3374 with SMTP id bq14-20020a5d5a0e000000b0022565593374ls118089wrb.2.-pod-prod-gmail; Tue, 06 Dec 2022 09:11:13 -0800 (PST) X-Received: by 2002:adf:fe46:0:b0:242:13dd:c4a1 with SMTP id m6-20020adffe46000000b0024213ddc4a1mr24824117wrs.669.1670346673459; Tue, 06 Dec 2022 09:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346673; cv=none; d=google.com; s=arc-20160816; b=hv+OmHtAFOw0HRYIpNReQ/qSo802mnJNMdtiYBTTgR6HcTpwkZZtHOpNer8R/2fwpH SfGByqX00HxkecQxgVvNsWAk+8OoYNsD5PDpOWMeHbRNHYw0VYkPcdTBmJMiOTVVX8/T +tUa8kVLJ2S1KzpQwOpqQr58Vk4TKAB0n0R9c92BfG9bdkMIspZ+BNECJNQ1HmHfZJaR xWV2nuYGA6sCCp9gLTjchlDWcCgY+Eeas8WJcIAwf0UeLdLbgVpoKMNOfLe/m1zYR69J FbKL8eiwyP8IdOcIwmBMiKTcRXFXzC5IbwCw2edCqdZRNWJLJIUPYsf/zRJ4Nu+hTlmq AGXw== 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=isZl4Ib1GW4IZeJsKLQaicOT0yx6KllCfAA6o2HK4Yo=; b=Xi4zcC1zxF2v5wRxJbeDh4h/qr3xpYKuW0UYzyp2U2NLTLzgCAaMoXsds5/bnlrVpG XZ2Xr1HoIGw3dbo0Vro+wiw9JSKjCWHyqAofRinGTUG/LwLTUXIDPZVKk+3n2VzGwDtn 7gZtyOSL4YShc7WhBlzNxJ2E+AkqbPuzwFone2PSCFX6az+5973FN4IeBdtT1pQO/6ZC lXViLklcS5DMXe+oTkfEyiQA3ytKiSEvqumyZTi+niWEgLi8mwubrbYkJsKA8ogRw8+W Q5jfoJnlTRD3SlyV66EYJzelhZp0y9DjZL9IqurqWqEzk+qB3l3Ce/fqoVdbDtrDxHzq 0Qxg== 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 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 12-20020a056000154c00b0024251dde4d0sor4877502wry.43.2022.12.06.09.11.13 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:11:13 -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: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 <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, 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 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 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=dEPxQkXm; 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-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;
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 <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/cpu-imx5.c | 1 + 1 file changed, 1 insertion(+)