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 6325AA94A; Tue, 8 Apr 2025 12:06:55 +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=1744114015; cv=none; b=MLpJ+1XaPNAIWjbo1YLAHlwGvJ1m7zq+NOv25DuLNbNa2KCeoFKg8KwubqcPzzYJj74iirm/DH/PzMWGBHgbjBxhHOIlwQSvzzuyGM9l0Ojo5b4w2IaBTGOnHymuHCfdeBcagGwV5jpqM7yogRVNwfOTRLfR6s8am69lWzdxWio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744114015; c=relaxed/simple; bh=IzX4CLeOskOh3qWUQa3yZQbaEhixITC/TJKlJTtcIfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qIs7ZqWDpFGjH3tHowSP+2OLMXfsJ6WNc9y9E1LiBgUr2jQNzAfgc1akStGSFlR4KVKERZhoshWShXLm2B+xc/irRJBP6wjk4g6f/ffCCOk2bhueD8XKaefHzVAQflqWLzGbh/4ROm3oJrS22tUndSZsvBQA5mvErexmMrpyQ9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LI5wULa/; 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="LI5wULa/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD9C7C4CEE5; Tue, 8 Apr 2025 12:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744114015; bh=IzX4CLeOskOh3qWUQa3yZQbaEhixITC/TJKlJTtcIfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LI5wULa/PXZZlGV5htEri5vDhhw+JNpswh89Og3nMA8YxsLcUIqzBrWnAaWGJcM79 KbSCOkv5lr+u1PCSabDKAhbTygsOmE+ZSJ3HJyQvmWbp7YR82k8jWPQOHY3QpDLSDo YHDVbmwW597AnLsqyL6tp9c8AjFByvAp3Qxq5lnU= 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.4 104/154] pinctrl: renesas: rza2: Fix missing of_node_put() call Date: Tue, 8 Apr 2025 12:50:45 +0200 Message-ID: <20250408104818.666772252@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104815.295196624@linuxfoundation.org> References: <20250408104815.295196624@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fabrizio Castro [ Upstream commit abcdeb4e299a11ecb5a3ea0cce00e68e8f540375 ] 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: b59d0e782706 ("pinctrl: Add RZ/A2 pin and gpio controller") Signed-off-by: Fabrizio Castro Reviewed-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20250305163753.34913-5-fabrizio.castro.jz@renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-rza2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rza2.c b/drivers/pinctrl/pinctrl-rza2.c index 8c3174d007507..fb6dccc5c304f 100644 --- a/drivers/pinctrl/pinctrl-rza2.c +++ b/drivers/pinctrl/pinctrl-rza2.c @@ -253,6 +253,8 @@ static int rza2_gpio_register(struct rza2_pinctrl_priv *priv) return ret; } + of_node_put(of_args.np); + if ((of_args.args[0] != 0) || (of_args.args[1] != 0) || (of_args.args[2] != priv->npins)) { -- 2.39.5