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 1E69918E02A; Sun, 1 Mar 2026 01:28:53 +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=1772328533; cv=none; b=gIoBSGSYGEt6B9NaKhJrRcX2wikLQR6kzxG+ByC33Q7YTvcT3Z38gC2vizJWJtfsI6fWC8WQ3rKHX32P79zZ22oNwyMiDjooKMndRQVR0VpHmdobudkFKmY3TupndAc/e7971CmvHKGPfP94ntjisb2Drgv/VSZbxk/+wpfOkbg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772328533; c=relaxed/simple; bh=tPxBpwN2QlFDJ/7HFpnIs+QOdIuqazXby382YStG3E0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XBV3SJvXqU36uHkfvjvsq+9MkOAiOwHifUadNr/9bpx4oVEkRHcqvYQYEYHkGBKMpTErrQhhBnRvap78zwig+5j5SoarVbHWTDdKWdp6uqJ9PvR0eQ/UamDpSVrdvsmuOQPx52yTHRaRH6oe7Xd9Pi2pElhyMvzTJc6GMXSpcaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dlh3Tg+u; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dlh3Tg+u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52FA7C19421; Sun, 1 Mar 2026 01:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772328533; bh=tPxBpwN2QlFDJ/7HFpnIs+QOdIuqazXby382YStG3E0=; h=From:To:Cc:Subject:Date:From; b=dlh3Tg+ur65Ba7euXUVSOm1SpifJj3ecl+9eg6Z5QVAx3A5b85DOqgtSiHd+1f/u5 bkdsS87+kG2jyNJYtOZo0h9m/NzI7IRoe0EV0s7HuEzU1DH/wRBcrNe4VVH/K3RF9K resQM31aHwN+OrLltb6vo+b7/O51TNwd2S/m+845OlhjmsqaYqPfqHCC0iydAl8SmG bDYjfKLhqTYTi21Dy47Tib8C6HhJzC7ia7LomECr5W6m1jXpe++lUKUNf2cMhYJGRG kn5KqhKJlTS5EtkhDyY+O7FYsrLZmnUly8owHLTLmFhHwJUmCgM9wMejpi6F4bAE62 Vyd32C5uV5cPg== From: Sasha Levin To: stable@vger.kernel.org, fourier.thomas@gmail.com Cc: Helge Deller , linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: FAILED: Patch "fbdev: vt8500lcdfb: fix missing dma_free_coherent()" failed to apply to 6.12-stable tree Date: Sat, 28 Feb 2026 20:28:50 -0500 Message-ID: <20260301012851.1686657-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 88b3b9924337336a31cefbe99a22ed09401be74a Mon Sep 17 00:00:00 2001 From: Thomas Fourier Date: Mon, 12 Jan 2026 15:00:27 +0100 Subject: [PATCH] fbdev: vt8500lcdfb: fix missing dma_free_coherent() fbi->fb.screen_buffer is allocated with dma_alloc_coherent() but is not freed if the error path is reached. Fixes: e7b995371fe1 ("video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb") Cc: Signed-off-by: Thomas Fourier Signed-off-by: Helge Deller --- drivers/video/fbdev/vt8500lcdfb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index b08a6fdc53fd2..85c7a99a7d648 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -369,7 +369,7 @@ static int vt8500lcd_probe(struct platform_device *pdev) if (fbi->palette_cpu == NULL) { dev_err(&pdev->dev, "Failed to allocate palette buffer\n"); ret = -ENOMEM; - goto failed_free_io; + goto failed_free_mem_virt; } irq = platform_get_irq(pdev, 0); @@ -432,6 +432,9 @@ static int vt8500lcd_probe(struct platform_device *pdev) failed_free_palette: dma_free_coherent(&pdev->dev, fbi->palette_size, fbi->palette_cpu, fbi->palette_phys); +failed_free_mem_virt: + dma_free_coherent(&pdev->dev, fbi->fb.fix.smem_len, + fbi->fb.screen_buffer, fbi->fb.fix.smem_start); failed_free_io: iounmap(fbi->regbase); failed_free_res: -- 2.51.0