From patchwork Tue Dec 6 17:10:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2510 Return-Path: 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 ; Tue, 6 Dec 2022 18:11:09 +0100 (CET) Received: by mail-wr1-f69.google.com with SMTP id h10-20020adfaa8a000000b0024208cf285esf3469827wrc.22 for ; 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 (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 To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Fabio Estevam , Martin Kaiser , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- arch/arm/mach-imx/cpu-imx25.c | 1 + 1 file changed, 1 insertion(+) 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); From patchwork Tue Dec 6 17:10:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2511 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A43C83F1C8 for ; Tue, 6 Dec 2022 18:11:10 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id r7-20020a1c4407000000b003d153a83d27sf184147wma.0 for ; Tue, 06 Dec 2022 09:11:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346670; cv=pass; d=google.com; s=arc-20160816; b=ygEnxZ1a03vDn47eN6eIE2k6bkhhtPC23Yglmgfe5Yi9emA15MDyJRz3WFBupP1THS i7y4V2zOasLpoZVxD1mhbIeOLxakA5+qLmOmF9qk4FPmMcG7gGp5L8pFuI8W4AcdhRks aboUL4ckJjZZssMhDVZxMN0bEp4MHJ3sjuWTuFB8vgsH3gLT523b5zqew7h15zP3uFtE wxIuXdCoZhkPta1B6MvgclM174YvPKTJTT27PeRe1yYRkeBKYIkE9XvzhrB3t49hUJgb xwCl34LYJtFH8dPWZphcqZ8Wz6NXlbmedhKhCpo4uLJEqJRqm+MVHxbi554lkNta3kdh DtRg== 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=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=VnaYdfCH5dNZHG3MKG/ZVvDiC5Es30evyxAKsA9xA/LhmkMn79haE9PntUtiNtIu0g JgKtJuEWM50qA3hX91gsUPLSC/R9pnWMGNVleLrqV3TwawYNc+6zurN8CKKdihsUjp7+ xqv/kZrnikgyK7OFvJIPxkU/t3TpMUDaduTPzNzZZXeX47FOOEmLVGAQfbIyvc7nm0gp tyFL9sQ8yEKltAvmRInX6nYeQ/zsN8D2zAju5YtnYScuMT+MhFY9odGKp3WeHqjcAVRV 34DurwzwP2ML2+pinmKBSQTExpe8vSApyPgEmLqB7MepdvtM5Q1Yr+G1fHGVi1Fs7ujf 5HlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MkbkbT4e; 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=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=J8uC17DHZZXC6ZGWFL/5/Fg7xFEpA9US0u2Mn2GZ+/7Jh2KC1q1NXrqnqPjf1Pdh/R mJHyXJrg6Qnfv+tr6wNOPeDQll45n5iaxKDfFIjio4xnFRx58KMA5+bZgIP7FD3oX6xa Sn3tQmVaiK6GxgVt6nMvOAShfRTtR41+2BYS4= 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=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=N9BHGmmHEgcS7Q4zP+QaxbkcKjiMPUeMWw20xE3VkQxRnHjB+3O9PDs8q7uweOQFkO z9EIcy3YcjUV20tke3/V3vsSHifjzQLiAfxqcIQk6mS81eEabx+dlrn2jRSltOIlEJ2H JQY9dG2iS85vZ6t/j12u7GzYKCpUk3JrpNum4tC0nG33rSsQSYNjJ7SreLRyKvRYe6gG afDdw1rBKVYUNiBt9csw67/FxJZSevvDz01HQmkl96C2ohrhC+TMioVsGInlGEvxuA/3 b5pE+HtqDNjVXhaTS9bdlr4ZuJey4soNEO5O1hBEBxpM5wZDIzseL5UAs4M6IltWQEwN Sh3Q== X-Gm-Message-State: ANoB5pl80M8RtO8v2e92AznpJCVba9VhF4KXH/JBzw3ciHabbvlZmJAy dlpgWtZeFEvmLi2SmQLP8PImu2jp X-Google-Smtp-Source: AA0mqf70gpxXo1fIgkRzBnzm3LASCqfH8hrqwKxkfjjH0yfIGGGjXBEqpzzaOoKt4OYw6aogTmxq8A== X-Received: by 2002:a05:600c:3553:b0:3cf:8e62:f748 with SMTP id i19-20020a05600c355300b003cf8e62f748mr65388600wmq.175.1670346670306; Tue, 06 Dec 2022 09:11:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:e909:0:b0:3c6:efd6:9cd8 with SMTP id q9-20020a1ce909000000b003c6efd69cd8ls13153wmc.0.-pod-control-gmail; Tue, 06 Dec 2022 09:11:09 -0800 (PST) X-Received: by 2002:a05:600c:538d:b0:3d0:47c:b2ac with SMTP id hg13-20020a05600c538d00b003d0047cb2acmr50891435wmb.52.1670346669364; Tue, 06 Dec 2022 09:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346669; cv=none; d=google.com; s=arc-20160816; b=sZIau3wWYnxwL3T6/p2/88UYs4ZDLhyyp5qhX6sZtP8O8vBqvEYxELGcCh0c6HpXWL p3GRsZj++nAjFIwnaDlQxPbyimJPYSDESVbJY5piZIGt7tWvSrMnL0aCWsotUdERBWOM im/WNS27nKMpdF+Qn5rU4MnCbfLL49UEDxoKesg+BAI3BLPlruAhov7Ygn8Yi7lp3VkC 0/43qkf1PkP0hFvXg4D6OIDJbYWPOIpnkmbGkcp5ialllCC220GrQ8JaDRFMLPFh7q4v FycuWwQaEWUJH92EBPe33Pe/XWh8k/uvcvoryVHLuykmitQftdmTsVFSUH/Sy2XLhD8h x0CQ== 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=YmzucAOYeRO1Za2FBpNv+O/C9sORhwUJDwZR4toHbGw=; b=qxHv0rGK2tVeMw48ki9L66UQWkfjBQ+TaMr8+jEYtv99IyJk8je19nd1fohIO+TJvY jzCECwORCCzx4IRrJVHB/huqwkoNdm2mcWow0+SAfFu0lKDfCFkHGqRUX1U4K7eHgj18 TI70y1PHLZ1gQWIwKTkRCLGY5/DAaftl7+XEkekkFcztWw416awjIBTzFaA/JsfYDzY5 vyzhP0rCx1In+b3n8sQI0yYUBfv7q3F1GFePG/z2fXlMRYBzX6foLlozm7rTQHriSC2i nQnAzQo0mVr9/MgOyPRYPc32444nhHLnQVK7cj7cdbSWUgrXIdwY3W3NXX5i7+XF4LlT INjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MkbkbT4e; 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 n16-20020adf8b10000000b002422f5dbfd7sor9868182wra.50.2022.12.06.09.11.09 for (Google Transport Security); Tue, 06 Dec 2022 09:11:09 -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:ff90:0:b0:242:46f1:1de0 with SMTP id j16-20020adfff90000000b0024246f11de0mr10925436wrr.640.1670346669143; Tue, 06 Dec 2022 09:11:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:08 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Arnd Bergmann , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: imx27: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:46 +0100 Message-Id: <20221206171049.3316611-3-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=MkbkbT4e; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In mx27_read_cpu_rev(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: 94b2bec1b0e05 ("ARM: imx27: Retrieve the SYSCTRL base address from devicetree") Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/cpu-imx27.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/cpu-imx27.c b/arch/arm/mach-imx/cpu-imx27.c index bf70e13bbe9e..1d2893908368 100644 --- a/arch/arm/mach-imx/cpu-imx27.c +++ b/arch/arm/mach-imx/cpu-imx27.c @@ -28,6 +28,7 @@ static int mx27_read_cpu_rev(void) np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm"); ccm_base = of_iomap(np, 0); + of_node_put(np); BUG_ON(!ccm_base); /* * now we have access to the IO registers. As we need From patchwork Tue Dec 6 17:10:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2512 Return-Path: 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 ; Tue, 6 Dec 2022 18:11:11 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id h81-20020a1c2154000000b003d1c8e519fbsf2720835wmh.2 for ; 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 (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 To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Arnd Bergmann , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- arch/arm/mach-imx/cpu-imx31.c | 1 + 1 file changed, 1 insertion(+) 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 */ From patchwork Tue Dec 6 17:10:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2513 Return-Path: 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 ; Tue, 6 Dec 2022 18:11:13 +0100 (CET) Received: by mail-wm1-f70.google.com with SMTP id ay19-20020a05600c1e1300b003cf758f1617sf10204371wmb.5 for ; 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 (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 To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Dario Binacchi , Arnd Bergmann , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- arch/arm/mach-imx/cpu-imx35.c | 1 + 1 file changed, 1 insertion(+) 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); From patchwork Tue Dec 6 17:10:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2514 Return-Path: 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 ; Tue, 6 Dec 2022 18:11:14 +0100 (CET) Received: by mail-wm1-f69.google.com with SMTP id c1-20020a7bc001000000b003cfe40fca79sf5883262wmb.6 for ; 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 (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 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 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;