mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
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:
|
||
|---|---|---|
| .. | ||
| corebootdrm.c | ||
| drm_sysfb_helper.h | ||
| drm_sysfb_modeset.c | ||
| drm_sysfb_screen_info.c | ||
| drm_sysfb.c | ||
| efidrm.c | ||
| Kconfig | ||
| Makefile | ||
| ofdrm.c | ||
| simpledrm.c | ||
| vesadrm.c | ||