Re: [PATCH] gpu: host1x: mipi: Fix device_node reference leak in tegra_mipi_request()

From: Thierry Reding

Date: Thu May 28 2026 - 10:08:21 EST


On Thu, Apr 16, 2026 at 08:09:29PM +0800, Felix Gu wrote:
> In tegra_mipi_request(), when provider.np is not equal with args.np, it
> returns without calling of_node_put(args.np), causing a reference leak.
>
> Convert to use the existing goto out pattern to ensure proper cleanup.
>
> Fixes: 767598d447aa ("gpu: host1x: mipi: Update tegra_mipi_request() to be node based")
> Signed-off-by: Felix Gu <ustc.gu@xxxxxxxxx>
> ---
> drivers/gpu/host1x/mipi.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks.

Thierry

Attachment: signature.asc
Description: PGP signature