From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B2C9266EEA; Tue, 8 Apr 2025 11:45:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744112730; cv=none; b=QBYVY1Dfu0VrVx7X49+zq+6kqy7E6F9TWH3Povw9fm2UZ4PvD3Q7UeuMHVdMpj8wTBYtaoPN8rDWKQ5NAmmOno14t/5oIcuKdxYq43nq2wFcGnSLGl+Jy2Jq4eE0Vzt9p3adzRqRx7VFoRZAVoQhq+tbPM0nl6M5HqbIaT9ZZ4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744112730; c=relaxed/simple; bh=Qv1VxlBlSUU413N5hKQ5ZalqqDOa3JouLAOmdWAEFoM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V22UtSenyeEKMLDkjrWH7SERHtF5P3P+M23slPPPl8KdxADj5cjDFhLusDW0ZCec3zYp2v3wO2FATonpavLE1uqssfO7rS6aBKt+F8RhzbJ0bWQfeG3Si4bU02QGA1DGjNNZnI2+U50U0Vnf0SbNM2jX8FpSQGHJD/vYCqDJ5S8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ALoTuyEg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ALoTuyEg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7029C4CEE5; Tue, 8 Apr 2025 11:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744112729; bh=Qv1VxlBlSUU413N5hKQ5ZalqqDOa3JouLAOmdWAEFoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ALoTuyEgFZSZtQYeAiLJYUgSR/XlYUVPiRdTIbb780oIBGFSO+M+oeZxiGLhRzYvD qpnQFPBD9wYHVVKXLydA9e7gFQF723ER+uw3EJ8PN65JsyD7rBfTKhKNfakRgZMcgW NS19UDT/qv5L3+RdDuA5kYs5BnvRabcCZO6xdgMI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Fabrizio Castro , Lad Prabhakar , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.15 177/279] pinctrl: renesas: rzg2l: Fix missing of_node_put() call Date: Tue, 8 Apr 2025 12:49:20 +0200 Message-ID: <20250408104831.108294032@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104826.319283234@linuxfoundation.org> References: <20250408104826.319283234@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fabrizio Castro [ Upstream commit a5779e625e2b377f16a6675c432aaf299ce5028c ] of_parse_phandle_with_fixed_args() requires its caller to call into of_node_put() on the node pointer from the output structure, but such a call is currently missing. Call into of_node_put() to rectify that. Fixes: c4c4637eb57f ("pinctrl: renesas: Add RZ/G2L pin and gpio controller driver") Signed-off-by: Fabrizio Castro Reviewed-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20250305163753.34913-3-fabrizio.castro.jz@renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index 20b2af889ca96..f839bd3d0927a 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -979,6 +979,8 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl) return ret; } + of_node_put(of_args.np); + if (of_args.args[0] != 0 || of_args.args[1] != 0 || of_args.args[2] != ARRAY_SIZE(rzg2l_gpio_names)) { dev_err(pctrl->dev, "gpio-ranges does not match selected SOC\n"); -- 2.39.5