linux/drivers/gpu/drm/sysfb
Yuho Choi 4aa8110000 drm/sysfb: ofdrm: fix PCI device reference leaks
display_get_pci_dev_of() gets a referenced PCI device via
pci_get_device(). Drop that reference when pci_enable_device() fails and
release it during the managed teardown path after pci_disable_device().

Without that, ofdrm leaks the pci_dev reference on both the error path
and the normal cleanup path.

Fixes: c8a17756c4 ("drm/ofdrm: Add ofdrm for Open Firmware framebuffers")
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>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260420002513.216-1-dbgh9129@gmail.com
2026-04-27 11:30:49 +02:00
..
corebootdrm.c drm/sysfb: corebootdrm: Support panel orientation 2026-02-20 14:38:25 +01:00
drm_sysfb_helper.h drm/sysfb: Generalize pixel-format matching 2026-02-20 14:38:23 +01:00
drm_sysfb_modeset.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
drm_sysfb_screen_info.c drm/sysfb: Generalize pixel-format matching 2026-02-20 14:38:23 +01:00
drm_sysfb.c drm/sysfb: Generalize pixel-format matching 2026-02-20 14:38:23 +01:00
efidrm.c Linux 7.0-rc7 2026-04-07 12:36:31 +02:00
Kconfig drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers 2026-02-20 14:38:24 +01:00
Makefile drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers 2026-02-20 14:38:24 +01:00
ofdrm.c drm/sysfb: ofdrm: fix PCI device reference leaks 2026-04-27 11:30:49 +02:00
simpledrm.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vesadrm.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00