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 A18A3377575; Mon, 4 May 2026 14:14:01 +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=1777904041; cv=none; b=qa6FauMSWETlDQgHVMVdIxenO2+MlVkDgJ0vUsP4mG+x24vZbiDJZFJsi7ltO4N5DBP1CN+cSsz7jG6QZNhLVzoex6fDLWcSuzXXv4rTyqhw8wbje1neNVrsbMCV0DK0RB/GKkCTXkq5Bosps8bRnMvoJ2ZRld1zoVKACYOVEro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777904041; c=relaxed/simple; bh=pVJq+r7wRkxVsMFaLh/3mEP8lckzcI079Sq33yYifh8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eWUsfEPLoqdtCGIjUVxj1PJH78t91jUvGIM4bQaI98gBL8S14BJQYKHFgY1GgephK+NkjYFKlLInnDNwBGkl8493h1xZVn5v0kyrsHgrrlVGvMAuWdoWig4ewRGMM6GjVGRw11PaAF902vJ1xbkN+/WMvHFodTbrNnNMUK41EAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JpHO0Lnn; 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="JpHO0Lnn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C7CBC2BCC4; Mon, 4 May 2026 14:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777904041; bh=pVJq+r7wRkxVsMFaLh/3mEP8lckzcI079Sq33yYifh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JpHO0LnnzguPMsjx4rNrmpuTrdo2UDZEeDLIfUKKmrX1wzeHR2P4myP8qda1BpnJX cBVb28y1f2T2TzlpMix68e+f3BOr5Xdhs4JOyaHnS3K/hLkJJlZjcsY6xPWSrLyAUw cprU7vDyuhyzu70+/xIlGGcjekOB2KJsDdCDP5pg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Louis Chauvet , Luca Ceresoli Subject: [PATCH 6.18 128/275] drm/arcpgu: fix device node leak Date: Mon, 4 May 2026 15:51:08 +0200 Message-ID: <20260504135147.658101983@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260504135142.929052779@linuxfoundation.org> References: <20260504135142.929052779@linuxfoundation.org> User-Agent: quilt/0.69 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 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luca Ceresoli commit ad3ac32a3893a2bbcad545efc005a8e4e7ecf10c upstream. This function gets a device_node reference via of_graph_get_remote_port_parent() and stores it in encoder_node, but never puts that reference. Add it. There used to be a of_node_put(encoder_node) but it has been removed by mistake during a rework in commit 3ea66a794fdc ("drm/arc: Inline arcpgu_drm_hdmi_init"). Fixes: 3ea66a794fdc ("drm/arc: Inline arcpgu_drm_hdmi_init") Cc: stable@vger.kernel.org Reviewed-by: Louis Chauvet Link: https://patch.msgid.link/20260402-drm-arcgpu-fix-device-node-leak-v2-1-d773cf754ae5@bootlin.com Signed-off-by: Luca Ceresoli Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/tiny/arcpgu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/tiny/arcpgu.c +++ b/drivers/gpu/drm/tiny/arcpgu.c @@ -250,7 +250,8 @@ DEFINE_DRM_GEM_DMA_FOPS(arcpgu_drm_ops); static int arcpgu_load(struct arcpgu_drm_private *arcpgu) { struct platform_device *pdev = to_platform_device(arcpgu->drm.dev); - struct device_node *encoder_node = NULL, *endpoint_node = NULL; + struct device_node *encoder_node __free(device_node) = NULL; + struct device_node *endpoint_node = NULL; struct drm_connector *connector = NULL; struct drm_device *drm = &arcpgu->drm; int ret;