| commit | 914035ba3ffd8bf7977493f797f00346f74bb951 | [log] [tgz] |
|---|---|---|
| author | Felix Gu <ustc.gu@gmail.com> | Tue Feb 03 20:14:58 2026 +0800 |
| committer | Helge Deller <deller@gmx.de> | Fri Feb 06 20:31:31 2026 +0100 |
| tree | 240a6daa02486d628708e4011d8391cb6ad9a076 | |
| parent | 9ba6d2f9377e11ba0d8b0dbfb21dd5a2f492a818 [diff] |
fbdev: au1200fb: Fix a memory leak in au1200fb_drv_probe()
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@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>