Re: [PATCH] fbdev: au1200fb: Fix a memory leak in au1200fb_drv_probe()
From: Helge Deller
Date: Fri Feb 06 2026 - 14:36:12 EST
On 2/3/26 13:14, Felix Gu wrote:
In au1200fb_drv_probe(), when platform_get_irq fails(), it directly
returns from the function with an error code, which causes a memory
leak.
Replace it with a goto label to ensure proper cleanup.
Fixes: 4e88761f5f8c ("fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe")
Signed-off-by: Felix Gu <ustc.gu@xxxxxxxxx>
---
drivers/video/fbdev/au1200fb.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
applied.
Thanks!
Helge