Message ID | 20221206171049.3316611-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBLHPXWOAMGQE47GII3A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 550E03F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:11:09 +0100 (CET) Received: by mail-wr1-f69.google.com with SMTP id h10-20020adfaa8a000000b0024208cf285esf3469827wrc.22 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:11:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346669; cv=pass; d=google.com; s=arc-20160816; b=Ljka+tCRpZr6wVoVntb8gX0Zu6eUExQ09/C2/quW2hdWWXB85bs3A/bbfg7DfV2STQ RABtHAkZdyVWboBCxikWNRrG/uqi3gW4M6dYFlx1+2w+WlXZjdXKR56C9641MxCoscoQ eViho4YlN++7cRSBSOPb1Wkv3NB8UTNC+YGHsNv9/CypT9yk/PFp/GX2fhNym/PTaPHe GcBTe0RMaUZxIOrfUL5gCbigbTG/KnlmrPWh5AN8nRhxmhsg/12Gm0vSb2tq1js9ppLG IpppyQY3KLRrvFKzyTH6kIwN4xn4nR3k1RMtMoEtmJkrHC63UKaLmnogF7QXaMSvZJVj sTFw== 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=u1XtE5OKO+vhn1JSf7TYUE369dzm7D9/7eFj+HzKSdY=; b=SbLbQzT98MBk9efKWpFNRCn0S6kcBvriMIfSuTclAvjb50ezAbw5s+y3fiGlGHelg+ e1GabQkAnvAHLF52Hi4zBpsLcAwM6+CTAODY5dInyp83qodY41tPeXD5c38E6OZ77mEg zReATpJEfP2jirJpvoAKTDia8sqYIc9IDK4We3arrQNdmqRrh0AaNzmwjgygaTmHYLcM I2XNbaVeO180X8XaTcERblCTKMPX/1HfDHToDRtpmm2F5/mT9ha7LZX4ZU8BYW4qQyp7 aznUETMkEuhCEHDSqG9WhQUZiPZGDazlEOROa5Z5iu21uwfxwS52zmLvk5LwXQqH5iIf rrsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dyXoW4R5; 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=u1XtE5OKO+vhn1JSf7TYUE369dzm7D9/7eFj+HzKSdY=; b=Cz+cEMZilbZ2LXPbLqPTrMxG8hIuFSQLbZCJLQzelLSXeC9pCDtIwphrp3Rh2CFzlm 6hvzjzvFzp781HAbwioF+TYwO0E1jfArsH5w85qcHs2mioCPPPyWcOG6rxkhBTAcHAIH cFK2b476NpmB1LRRk1XcubXVRFncmBVTlk9Ng= 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=u1XtE5OKO+vhn1JSf7TYUE369dzm7D9/7eFj+HzKSdY=; b=Uq3OF84yhhzXUaqSRu8mk8qPVueadPS0U3g+3bW2OAsDE9FrrBU38x5Kf/zCXy5pZe /k0Ghv09pNs+eSq4BaGObft+SRLntYatbnM+MmEf7OWbgXZu5Cw5M7nJ781GjjPELpGe CmzCDLEMIWUEmX0OsfsUx3IlLcxfIR4tOfdFj1/SXgfwzwEE3mh2SG1NNav37Sua7Mro TdDnaU6yscthlISztG6kbR3LUeKhpONKCRf0Vr9LOJEnWMPJXUdWS3s3OhxMc7Bj52ae 75G8zrk2763nOmOfJq3tmEnHraN+pHUxpbUdyZGiqUX+KUdMAvdgfHcz4GqDhckrcUAs Xn1Q== X-Gm-Message-State: ANoB5pmKliW9dwTgrKQAR7YettHNyWa62+xdnY/rx/ICNVl4BpaZxk+S 7uhQDJ5jgCIWJcySK+Gore2jXqvu X-Google-Smtp-Source: AA0mqf6NphomO7l0FlNb9xe8nvg/Ie3KGc2QHibZLBiWGtqhR12KVcRex7itWZFvV8n5HLpUANMigw== X-Received: by 2002:adf:fd4c:0:b0:242:7f17:7208 with SMTP id h12-20020adffd4c000000b002427f177208mr652319wrs.703.1670346669055; Tue, 06 Dec 2022 09:11:09 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:fd87:0:b0:236:8fa4:71d1 with SMTP id d7-20020adffd87000000b002368fa471d1ls145782wrr.1.-pod-prod-gmail; Tue, 06 Dec 2022 09:11:08 -0800 (PST) X-Received: by 2002:a5d:68d0:0:b0:242:6fb:128d with SMTP id p16-20020a5d68d0000000b0024206fb128dmr30673756wrw.422.1670346668051; Tue, 06 Dec 2022 09:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346668; cv=none; d=google.com; s=arc-20160816; b=RyioB/dmmfE+kEPO6wHPTyui5+905P0iFOgKpoC7Z9CioerMgxpw8yjAlvE+biseHI J+7yLm2fs7iymc/gLn8/mLN0RsU7PYfbsGV9XtZh9Tp00GORWTMNXzzZ5xXxfPbwFTX1 QkKODfeqFNRZDCvpKTyLby8RFSkGFuN3Cy6CCe8lB/H3aLF7Co7n4cUuLLHGuEe3odiG syVifSZOfLP7oiNz7h+MEPa26MQ+fu19R8rPAoHz6jE2sgZnIJwoFiukU4Tz4cikoTM2 xwKlW8+xsjqve/1B9leJaxU9HvCYEEynaHxdxnCCKgCwaj+mHpXU+aG8oozBfwCgZfGA oqcA== 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=+0eEedGwGTs0kfi7RPmjpdf2WkKmieSTXamBFgfWsLQ=; b=PbfUr6oqaf/yZKPdjVhCDI0w/cKBH09ms7Lk0rjhjriLKcnxHbyco2iS8I4l09F74R A8OBBN4RM8OJtCgpF6utRjkFImKiUlSuBKZdZc6600rc0T7wLVSGTS5BMf1iky+k4Dx4 rFgw1hKn7ZPMnf/hgNuvbvRB56qy6tgGWYP3i+Y9FW3Ce3EF1LFVaTDIE+YuyiawtaW7 gs+o+CCPFEvmG3xV0vquXXXwlh1Dx04eGy2TwemFRIt+nQSu2Em2H7xwDsIwkJTQZfYt aR0XliQD/VlZrD1QbSOLNQTrbXwXEJQnEtw8v9Put6pPDLeKyHeVsDbcYFmjdfarWaj2 JvrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dyXoW4R5; 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 g16-20020adfbc90000000b002427560c5c7sor1636613wrh.46.2022.12.06.09.11.08 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:11:08 -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:a05:6000:18c1:b0:236:5d8c:97fd with SMTP id w1-20020a05600018c100b002365d8c97fdmr54257190wrq.473.1670346667896; Tue, 06 Dec 2022 09:11:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:07 -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>, Martin Kaiser <martin@kaiser.cx>, 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 1/5] ARM: imx25: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:45 +0100 Message-Id: <20221206171049.3316611-2-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=dyXoW4R5; 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-imx25.c b/arch/arm/mach-imx/cpu-imx25.c index 3e63445cde06..cc86977d0a34 100644 --- a/arch/arm/mach-imx/cpu-imx25.c +++ b/arch/arm/mach-imx/cpu-imx25.c @@ -23,6 +23,7 @@ static int mx25_read_cpu_rev(void) np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim"); iim_base = of_iomap(np, 0); + of_node_put(np); BUG_ON(!iim_base); rev = readl(iim_base + MXC_IIMSREV); iounmap(iim_base);
In mx25_read_cpu_rev(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: 8b88f7ef31dde ("ARM: mx25: Retrieve IIM base from dt") Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/cpu-imx25.c | 1 + 1 file changed, 1 insertion(+)