Message ID | 20241013-rcpm-of_node_put-v1-1-9a8e55a01eae@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC834CF2576 for <linux-arm-kernel@archiver.kernel.org>; Sun, 13 Oct 2024 13:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NGlXEzSiP5z6yP6nCSdenZ8uyY+JlklNBTVpENkMXes=; b=pVTxbMV0NtMfH5QqovpDL9H+nt pk4D442TmzbTvCiYV02kaFs0V6A0LW82ZnY4kzowsehtv7//n+b4QqrxFx6DD/rz2HxlyrOkbwDql HUAoizovA7H2DCdqF/WiHYcSxcTD7gvG/vcS+OX/AAYshE81b61/jacXHfV6gBzU4CXRQK2jDwVbK b9AxG7bUUk5/TVSWPCVGBEU4HktH310FRNSefPjCy7T6ArcLlrMD1qtSaTGtf/R6ZyiyrurAFKZZm NrolauTJZLAtJzR/fIlSdPuIFYFF8D6ywkII6OWNqlnn4n2AYL2nOgDkx2rSQkbRRIbhkC9mj54Ip AYhAKxxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szygR-00000002irO-1RfZ; Sun, 13 Oct 2024 13:30:55 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szyf2-00000002iiU-3JXf for linux-arm-kernel@lists.infradead.org; Sun, 13 Oct 2024 13:29:30 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-37d4ac91d97so2865026f8f.2 for <linux-arm-kernel@lists.infradead.org>; Sun, 13 Oct 2024 06:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728826166; x=1729430966; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=NGlXEzSiP5z6yP6nCSdenZ8uyY+JlklNBTVpENkMXes=; b=LnQ+GfBNxKV65zlLbwUB2fW4W0GqTpkxs/3hX/Lfj/pyv/7w4DXcSbmXPzV3dTqjZ9 jAKsnVK9tUL8CuTwhwGw3ipqFNTDY9x1g82BQP+SSZ/5c9M4YAQU964wjAe1ZJejniM3 F1VjIJWE9S7CFklUQhoC6AiUh/ryLNYSHLm/cq5qvb0E747UZKgvop+uNFp3Twt+wMuJ qQSRoJDMStl96kbyNksITHxwNiyKpHxKX7kz/OM8bUYogzqbI74lLVA/zUC9bal5p0R3 sfdm6EPcIDE5XdLloVN4wiKP/TJ6Qvy+DTzE/ju3w7CaqvoGPnrvIhJk5Sn0QIMqVj+1 dK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728826166; x=1729430966; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NGlXEzSiP5z6yP6nCSdenZ8uyY+JlklNBTVpENkMXes=; b=r8hAcROGKBpxk8e4vHAx85mLMNXiuE/zPsThOoFJlHS55+1yePV24tsvcxVjMMsNYx 4Z0XDGurC4mmiY2Ndz9ub+pK4xQAxa1hs3M9v+vYisrDVNlXyfa6e+Ecjk/ngBYlL1Qk 58FcFpIrrYoprJH7NfNFdhDnc2HsSP72U4uGViAl9MofPds8UlteVkOT/j5x2e89o8wQ 2QdJRNURnImxVCDCq8pATSFw3TQ7F4Ij716SWrvOX0aesBZdPCATFSU42CUEVd8yXBBD uTpeg8Bgswg7G/SYhxLEISWv2U2jogOd77sF3BiKlaAGMkh0TsJHcVS4f62ndDO5gaHx 0Bog== X-Forwarded-Encrypted: i=1; AJvYcCUhN+g3IRkZO+a6tShGjv0SZY8h2Oz/iFda87bBSdrzB10aW8F+RkE5lVGGQA6zgWlmKXen56BZ5VS3IACZzvC2@lists.infradead.org X-Gm-Message-State: AOJu0YzePhsbUWM0iRN3THjVjMBoVRcrBHmFIKry9zYckVCuKIQKHYI6 fzQL1oIaYP5EiXnQK5wKmSaYrQgEGGU26Uu87igIB2ZiDkZofQdvqTSWdLUD X-Google-Smtp-Source: AGHT+IE8fC2geMshENVGb1hea7AhB6LAexPh3d8xXlpLs/ktse8QKUVqQH3fLCN/Mpne6NvatqohrQ== X-Received: by 2002:a5d:6a42:0:b0:37d:4cf9:e08b with SMTP id ffacd0b85a97d-37d5ffa36e1mr5005643f8f.31.1728826166513; Sun, 13 Oct 2024 06:29:26 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-a034-352b-6ceb-bf05.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:a034:352b:6ceb:bf05]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d4b9190f7sm8655165f8f.114.2024.10.13.06.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2024 06:29:25 -0700 (PDT) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> Date: Sun, 13 Oct 2024 15:29:17 +0200 Subject: [PATCH] soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241013-rcpm-of_node_put-v1-1-9a8e55a01eae@gmail.com> X-B4-Tracking: v=1; b=H4sIACzLC2cC/x3MTQqAIBBA4avErBP8qUVdJUJKx5pFKloRSHdPW n6L9wpkTIQZxqZAwpsyBV8h2gbMvvgNGdlqkFx2ggvFkokHC077YFHH62Q9Dh32qxNScahZTOj o+ZfT/L4fhLKd9GIAAAA= To: Christophe Leroy <christophe.leroy@csgroup.eu>, Li Yang <leoyang.li@nxp.com>, Ran Wang <ran.wang_1@nxp.com>, Biwen Li <biwen.li@nxp.com> Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Javier Carrasco <javier.carrasco.cruz@gmail.com> X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1728826165; l=985; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=SAEC5JBEGvTQMw649wbR32F7xQSAMSlWb1WlKc8U8S0=; b=Tzw1jc++TZAlsNFa2eLf/X1m6vznngoB7tdjupyfxfOzpZpnbegGJ4VkNZYJOxkT0Cb1leguC 4SfKNsaEQt4A+fLcXtT7kBPAK+pcVcJPdx+ZMr699dS8TLODbjBzgk3 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241013_062928_865428_CB2AEB4E X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()
|
expand
|
diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c index 3d0cae30c769..06bd94b29fb3 100644 --- a/drivers/soc/fsl/rcpm.c +++ b/drivers/soc/fsl/rcpm.c @@ -36,6 +36,7 @@ static void copy_ippdexpcr1_setting(u32 val) return; regs = of_iomap(np, 0); + of_node_put(np); if (!regs) return;
of_find_compatible_node() requires a call to of_node_put() when the pointer to the node is not required anymore to decrement its refcount and avoid leaking memory. Add the missing call to of_node_put() after the node has been used. Cc: stable@vger.kernel.org Fixes: e95f287deed2 ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> --- drivers/soc/fsl/rcpm.c | 1 + 1 file changed, 1 insertion(+) --- base-commit: d61a00525464bfc5fe92c6ad713350988e492b88 change-id: 20241013-rcpm-of_node_put-5e94e5bf1230 Best regards,