]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbdev: savage: fix probe-path EDID cleanup leaks
authorYuho Choi <dbgh9129@gmail.com>
Mon, 20 Apr 2026 05:19:26 +0000 (01:19 -0400)
committerHelge Deller <deller@gmx.de>
Wed, 22 Apr 2026 13:45:38 +0000 (15:45 +0200)
commit9b8a9a3a6f57edd02b7c8db14a316e6fab7fa772
tree320941909146d24172c396d0ddc1da0f1fbf899d
parent869b93ba04088713596e68453c1146f52f713290
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 <mhun512@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Co-developed-by: Taegyu Kim <tmk5904@psu.edu>
Signed-off-by: Taegyu Kim <tmk5904@psu.edu>
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/savage/savagefb_driver.c