Message ID | 20221206171049.3316611-5-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBMPPXWOAMGQE3UIPVJY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 664A63F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:11:13 +0100 (CET) Received: by mail-wm1-f70.google.com with SMTP id ay19-20020a05600c1e1300b003cf758f1617sf10204371wmb.5 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:11:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346673; cv=pass; d=google.com; s=arc-20160816; b=hYLFy/iD7iJTPA3txIjc4pL5vNSBWx8gDm6Cclw2upvEHiTPuRpDjGa1/NQ0wqzEH7 hcgEM0BWEGQHRIJ5Y6QiIQw8KmnGqHU/JX0D61XMMFkUHyttcQ+BuVDSYahM+r8A3QBg 0wmit3pRUbasDEwx0pterGaOyS0lxUdj3MKP8b9G8Q9eIuWW2Pqq6xTIU8ch+dQ+Tyug EWVek37OjT69r1oBPlRKCopnu/UNDbAbwiv2TEHHOAP2UW/woQxT58BtY9uOnNKFb19D e8kzv/IToVNYoOOJLh43mYCclaBvEYMb1LFMM5tteDbenKechXNmsLCBL1nIJ4JSn+MH QEJg== 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=whOtCHTta39xbIEWsME/cRgND6FOeuCC1mIpKewqf5I=; b=Kl64t0o3GUieyQ/+iQWmNUGeb3qC5idKCVh85bF/iSeWgCC+vIlOOdGcmmmDiopYlT 4YO9/OwI2AVGB5Ea5/9q7uoKL6CLXGFK4QBSc+pZ0KqqkiRRkDq0dLgvPahVkvLEJ9og mRrGcV374tAKsW863pOZBSZA/57SvALdy7G7/xJTFcGkTQExhb6otL9F5R/yVzYWpDPc BgNrt+mp2XCtWvvlxmYN3UzRm79u7cvpLKqMpuQ2o6G1krLlXxSCWN7d0kNs5wYwarjQ 4V4K6aklWdHmMV9524JWSTaDCOgKfzYI1HeUs12bRC45Mbeq6R284YQyFJeDjks4hKrk Accw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jBQD+O7X; 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=whOtCHTta39xbIEWsME/cRgND6FOeuCC1mIpKewqf5I=; b=Txc0vyZQGitnrPqGYmYD2RwHw5khou84Rp2li5VduL+pqiANoLQcycVBs5E8Nl+eSj kHG3UdjVqqkoGIPqguF+0Yh9pVpzsQNoubB4NojeBqxBJ5Ni2P18O7SSKvc8Ld014AuU 3Pk3gP1CtAjGhGYpcuNYZP8wj7fJUhCmBiAVk= 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=whOtCHTta39xbIEWsME/cRgND6FOeuCC1mIpKewqf5I=; b=wAWVRqoYno8fOPeiuu6VELp1t71Yq74AhKMzOYDb5vXqqZ7kjHbClmHjh6Fx5KpxR0 FRq+0bLTzO7Uc1QJAUo7nWWKJlrAL3psI6EVqRDJoUyFtie+CbErbb/ZDmb1zunzSTl9 bd0OWXBthJcb/pabxKPemXoRG6qXpvj5wkxAmSEt3YSm0zFL46cgr6K13/67828+JLpy 6t+EJp7739kSY+zKRL2UEpnkFCV66zhQeJvb9lvan05ef2hKq5WtmzqztaKzm03xufZX ZfVW/85H4ySBCfXKg14dzlJ2ZUDjv+STFCBKxE2uha0Ew/X4k06M3z4mVJhk4XBkN9e7 1Hcw== X-Gm-Message-State: ANoB5pkn0X7c3R2Sa4ySH+xduluw7ve19G6ZLfTFh1nHZLSTeC5T+nJT fK8t5UZx1PhaAUscru5cEpkPRwet X-Google-Smtp-Source: AA0mqf4Q4jDdDUh2lMilyxEqT3Sde2jOPIunG9+pUOUeGm4PnZlBJgUlQIqmQDttl3Blu0GqlVCkSA== X-Received: by 2002:a5d:5385:0:b0:242:f8d:fcee with SMTP id d5-20020a5d5385000000b002420f8dfceemr28214910wrv.86.1670346673204; Tue, 06 Dec 2022 09:11:13 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b17:b0:3d1:be63:3b63 with SMTP id m23-20020a05600c3b1700b003d1be633b63ls1276103wms.1.-pod-canary-gmail; Tue, 06 Dec 2022 09:11:12 -0800 (PST) X-Received: by 2002:a05:600c:4f92:b0:3cf:e87a:8068 with SMTP id n18-20020a05600c4f9200b003cfe87a8068mr58801631wmq.3.1670346672097; Tue, 06 Dec 2022 09:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346672; cv=none; d=google.com; s=arc-20160816; b=kzDuQq7H20HRBceSCEl6VYCj9S26Q9qqtlSRkZ9yV4Db1qZ4WLNQ9vdZi9GoToKXUC eGWaBJv3jBahV7q2U3Vc1zm09pv9owIJdGrV1hjrwG/p2OqZm5lZ+x/hz5BxyZxqPSqQ 8XdE/Fm261Q4DVC2AHXAu2kYeP/xaICt+hnSbmq5VYJGjM7Y4HeECDueQXUR+ZMfnfrq W2gZtyIgr/afXVZeHUggUJS+1qn1qHVvH6Cqe0pk8/RRtNb8RyYT5iZuCgeSg5JHQPn9 aEzVDCAMRsANovUha62GgNERbuwc0iXtVnKBTqH/GWJFriVI7NDXZ9UuMDFMQNCJwv7o 9pbg== 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=JTKzSC4xiELtOhvYcPg625CE+pmvLexXVke2DqyU21Q=; b=F1+ccwUy8pqPBK+o/QZRD/Suo8xRwhlm+r4mWQ/sCOB7ms6B+njtC6LdBJIF/MspQr kJ5W82x0/NAyWs11M7mUzetA51dTe44D+cjYWeBsLa0UVLXwVLUsTrJqFISojLb2t53y Pu93rUQEHkws4hOxm5+MEoBAMLDN4ZtFnUTituns860HjXsGjZyvDnv9Qxb4XmQDO2nv dboPrF7JwzbQNHfWTXom+VdiVfMSrMAb9//Q0DUh4V4Nooa7M7F8i7H3FED6biF5msSK +c0SmujqRpgjcXdP+3nI14usYfYBLi8ic17kveviV4RWfILdZQeCDrtm1vhnzJHA0G+u /J0Q== 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 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 c4-20020adfc6c4000000b00234bb2218adsor9590393wrh.51.2022.12.06.09.11.12 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:11:12 -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: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 <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 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 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=jBQD+O7X; 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-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);
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 <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/cpu-imx35.c | 1 + 1 file changed, 1 insertion(+)