Files
linux/drivers/video/fbdev/savage
Yuho Choi 9b8a9a3a6f fbdev: savage: fix probe-path EDID cleanup leaks
When CONFIG_FB_SAVAGE_I2C is enabled, savagefb_probe() can build both an
EDID-derived monspecs.modedb and a modelist from it before later failing.

The normal success path frees monspecs.modedb after the initial mode selection,
but the probe error path only deletes the I2C busses and misses the
EDID-derived allocations.

Free both the modelist and monspecs.modedb on the failed: unwind path.

Co-developed-by: Myeonghun Pak <[email protected]>
Signed-off-by: Myeonghun Pak <[email protected]>
Co-developed-by: Ijae Kim <[email protected]>
Signed-off-by: Ijae Kim <[email protected]>
Co-developed-by: Taegyu Kim <[email protected]>
Signed-off-by: Taegyu Kim <[email protected]>
Signed-off-by: Yuho Choi <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
2026-04-22 15:45:38 +02:00
..
…