From patchwork Sun Aug 25 18:05:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13776860 Return-Path: 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 EAA72C5320E for ; Sun, 25 Aug 2024 18:07:36 +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:In-Reply-To:References :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:List-Owner; bh=VYpIfMLevBxY0BufVpZdLlZOu4ayBivVHqKaTZPujng=; b=bjHtzeo0cwy59AQRx0qUkDPRu3 0q7s50HQAjcUPXs3GJX9StXJ+LtICGavMTfSIblL5tEUlSssWve3fGbJoirbgj8WXrM64ZJ2wmnhS 0vxsqCDaJf1wVCORbWL7ikdaQsh383ETgk6iTjqtCeAg7X5AnNz+G0NOvBgXA6021T8QCptibXHAx gFz+X2XdPojJBVTyN33oWwH/D6/KfaTRTdVejvb2Z2O/FAPHPpg4/Fmtx0nzX0NVhkWX++P8Q+V4h uuTI/CHLqpq+3Lgd5N6xcoJNu/ACR7Dw+KFoAO7VbljVzva+9jaZKpXtJs/MjJCh73Ddweik4jFnu Rgqn8lvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siHeA-00000004m6C-4BHv; Sun, 25 Aug 2024 18:07:27 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siHcf-00000004lja-2chF for linux-arm-kernel@lists.infradead.org; Sun, 25 Aug 2024 18:05:55 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42808a69a93so5553855e9.3 for ; Sun, 25 Aug 2024 11:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724609151; x=1725213951; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VYpIfMLevBxY0BufVpZdLlZOu4ayBivVHqKaTZPujng=; b=KjMdNtvMIYUlWfXtjh5RLxC/uwtP/TCNIJYjBP6htqs/vJTCqdjq8MFcAk/drA5G5J iIxUOtQ8V/TNCteJfpZe6bCjv4J6uFSiLn0NcSKX2z8DylNbR/FIrWM92TUmW5nr1tf+ NYMhkJFoc3fEwA/KJUPRq1EmUcX51KCP6uLKiecRPzod2eQPqHBjBYDTtC3Yr+YVS3JW TW7yiX1avsYV/xL3NhMPHUEG1NOExyZmkgs2CsbmJ4D5ZduwcqS6oI9wPsTzBMe9ylAk 1cjUHPbMnnvF3RdsDRmhpZSN6xoQcrDr2RMjjuZL/0gYaR2PhXmJHdzBDsnHmxF0NTAS 4WWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724609151; x=1725213951; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VYpIfMLevBxY0BufVpZdLlZOu4ayBivVHqKaTZPujng=; b=ep6tCVLm8CoG7QZv9btOWw9TECuu3NXqeyGatFG0rFSQHIuyYP5RnIz+EmjsxfZtbg XOFkMErcAdDts7IXQFVdedRCYxahVOAJkkocUNtX1Th8hlVUNu6jeCMIRxKboxtVf85I RIDGIkfQvg6dJxiivnfHn5AwmoTKZJlWqxwOCpHw1GH//MbXLkspfN2PQi1vmehgMqHS KVFKJEESbl9K+n4hP4AyS2VZawub1m2bobos7Ev05pnqmxR3kgK0gAAaHfyH5W+xoLtR 277kOY3QgBg5npFJ4guYIYMxcGQCF/MfDtKxGT5vsM7sla1GrAU8xehcljSs2U7TyrG+ ew+g== X-Gm-Message-State: AOJu0YxT1NCwiG1KBNhroF5rqR5/wwI4mv/nELFdY2UdnZLdqv5FvmyB 9UEpEgWIrX5vQKMC+9vgzVz0C/xFNmS078hq//nfMjlH3020l+9na2Z/KGMRGMs= X-Google-Smtp-Source: AGHT+IGoA/Rn3FHpEkZNqq0MHOX/MSoH9qsr9KuvzwqRF1RAbel/snzk7XWVAhvi01a5m+hc/xV1Qg== X-Received: by 2002:a5d:59a9:0:b0:36b:36aa:a14e with SMTP id ffacd0b85a97d-373118d1d2fmr3488407f8f.8.1724609151554; Sun, 25 Aug 2024 11:05:51 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37311dca113sm6438736f8f.16.2024.08.25.11.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Aug 2024 11:05:50 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 25 Aug 2024 20:05:22 +0200 Subject: [PATCH 1/4] soc: versatile: integrator: fix OF node leak in probe() error path MIME-Version: 1.0 Message-Id: <20240825-soc-dev-fixes-v1-1-ff4b35abed83@linaro.org> References: <20240825-soc-dev-fixes-v1-0-ff4b35abed83@linaro.org> In-Reply-To: <20240825-soc-dev-fixes-v1-0-ff4b35abed83@linaro.org> To: Linus Walleij , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=798; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=LIZtMc9nHoVSkfFptUxs0Y+Ob0r38B/hMi0Yhl8M4mY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmy3J3NpIXoshBZUGa2xvTz937PSCt1g8bClII7 Gypds9E0ceJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZstydwAKCRDBN2bmhouD 15J4D/sFI2Pwlgu5DaqVgnr27xueYqFfMd5lL4vwH2xoYNLT2//yN0INBwq03sGZAYd816ZG9Nb +3VPV2x03TUVQOYCPU1iMGpnepzP5ReVw/e+zT3lOpcZVN6sM4FUfgSbdUiPhLxYKdBnJVNfbOv aZcCWbTtKWefPVwHsV9hxmIPRBmV1RAjJxylzEDl7jcDju1moiDueV3LZie18q+A6GvjYPMzoGV BAgxnBi7mHkLQuF2rKnP5/xUgGFY5h+79ahsMQHiiCJspOTU2GQQZv0hHuWsEy+yqsuPJTwzNG/ HlPTz0ulAkdSyLCV7DwNVUnv7/rrt53x0wFzL1vNhRE1YfLazkPQCVS0nguJrr76GAcaOOQzSe9 ynF7BeTtJehayCDlUG4LEJWuAMT+v+UO9oE2rTqzIKlpDqdxXZQjHaPy116AMZAeTQmrh4NBsli kxJ5HqW+BHH22T8OOv1q3wE8N/9RMPdCEegGKkPbyu+6xe00WPM4/bXOQXasfrUcwF478KRbuIJ Q9XstIkj7EiqAA+JdxELQ+oYjhyAiiEnt43LHJUH5Td0uE9WYdxJqV8oEBsBFCROzNVesb7Rv3T n+5kJj6eNtVY/Lgi/Wx/7S1ZomQYAYtNsUTmpTeDZv5r1ko3dR8I6Y0dG4bREtpgIydIvvkNCkn 50OkEyWy90ezCMg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_110553_767569_944440DE X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Driver is leaking OF node reference obtained from of_find_matching_node(). Fixes: f956a785a282 ("soc: move SoC driver for the ARM Integrator") Cc: Signed-off-by: Krzysztof Kozlowski --- drivers/soc/versatile/soc-integrator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/versatile/soc-integrator.c b/drivers/soc/versatile/soc-integrator.c index bab4ad87aa75..d5099a3386b4 100644 --- a/drivers/soc/versatile/soc-integrator.c +++ b/drivers/soc/versatile/soc-integrator.c @@ -113,6 +113,7 @@ static int __init integrator_soc_init(void) return -ENODEV; syscon_regmap = syscon_node_to_regmap(np); + of_node_put(np); if (IS_ERR(syscon_regmap)) return PTR_ERR(syscon_regmap);