Thread (2 messages) 2 messages, 2 authors, 23d ago

Re: [PATCH] fbdev: sstfb: use managed PCI device enable

From: Helge Deller <deller@gmx.de>
Date: 2026-09-12 16:09:37
Also in: dri-devel, lkml

On 9/11/26 02:08, Myeonghun Pak wrote:
sstfb_probe() enables the PCI device with pci_enable_device(), but
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 <redacted>
Signed-off-by: Ijae Kim <redacted>
Signed-off-by: Myeonghun Pak <redacted>
---
  drivers/video/fbdev/sstfb.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
applied.

Thanks!
Helge
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help