projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f63bf
)
acpi_video: fix leaking PCI references
author
Alan Cox
<alan@linux.intel.com>
Wed, 25 Apr 2012 13:33:33 +0000
(14:33 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 17 Jun 2012 18:23:11 +0000
(11:23 -0700)
commit
cfb46f433a4da97c31780e08a259fac2cb6bd61f
upstream.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/video.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/video.c
b/drivers/acpi/video.c
index db39e9e607d85542e100967a5783b1bf791e792d..623a3357ce9be6ccdc3f97402da59081ab6ddf2c 100644
(file)
--- a/
drivers/acpi/video.c
+++ b/
drivers/acpi/video.c
@@
-1732,6
+1732,7
@@
static int acpi_video_bus_remove(struct acpi_device *device, int type)
static int __init intel_opregion_present(void)
{
+ int i915 = 0;
#if defined(CONFIG_DRM_I915) || defined(CONFIG_DRM_I915_MODULE)
struct pci_dev *dev = NULL;
u32 address;
@@
-1744,10
+1745,10
@@
static int __init intel_opregion_present(void)
pci_read_config_dword(dev, 0xfc, &address);
if (!address)
continue;
-
return
1;
+
i915 =
1;
}
#endif
- return
0
;
+ return
i915
;
}
int acpi_video_register(void)