FAILED: Patch "fbdev: vt8500lcdfb: fix missing dma_free_coherent()" failed to apply to 6.1-stable tree
Subsystems (3)
Sasha Levin
maintainerThe patch below does not apply to the 6.1-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 <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 88b3b9924337336a31cefbe99a22ed09401be74a Mon Sep 17 00:00:00 2001
From: Thomas Fourier <[email protected]>
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 <[email protected]>
Signed-off-by Thomas Fourier <[email protected]>
Signed-off-by Helge Deller <[email protected]>
--- drivers/video/fbdev/vt8500lcdfb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/video/fbdev/vt8500lcdfb.c +4 -1
@@ -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:
Signature · 1 line
2.51.0