diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-10 20:08:35 -0400 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-10-13 11:33:12 +0200 |
| commit | 92198ec63465f44fee641a70f32a57b73267e15c (patch) | |
| tree | 54663448209caa4aa94fa27b1558a5ab2bc0dbbb /scripts/Makefile.thinlto | |
| parent | 8e7b98afecd734f6543c65550a265fa6b87b8feb (diff) | |
fbdev: sstfb: use managed PCI device enable
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.
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
