Re: [PATCH] fbdev: sstfb: use managed PCI device enable
From: Helge Deller
Date: Sat Sep 12 2026 - 12:18:09 EST
On 9/11/26 02:08, Myeonghun Pak wrote:
sstfb_probe() enables the PCI device with pci_enable_device(), butapplied.
failure paths after that point return without disabling it. The successful
probe path has the same imbalance because sstfb_remove() releases the
framebuffer, mappings and memory regions, but never calls
pci_disable_device().
Use pcim_enable_device() so the PCI core disables the device automatically
after probe failure or driver removal. The driver still releases its
framebuffer, mappings and memory regions explicitly.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Co-developed-by: Ijae Kim <ae878000@xxxxxxxxx>
Signed-off-by: Ijae Kim <ae878000@xxxxxxxxx>
Signed-off-by: Myeonghun Pak <mhun512@xxxxxxxxx>
---
drivers/video/fbdev/sstfb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Thanks!
Helge