Files
erofs-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 <[email protected]>
Signed-off-by: Myeonghun Pak <[email protected]>
Co-developed-by: Ijae Kim <[email protected]>
Signed-off-by: Ijae Kim <[email protected]>
Co-developed-by: Taegyu Kim <[email protected]>
Signed-off-by: Taegyu Kim <[email protected]>
Signed-off-by: Yuho Choi <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-04-27 11:30:49 +02:00
..
2026-04-07 12:36:31 +02:00