Yinghai Lu
1cc1c96c16
PCI: fix memleak when ACPI _CRS is not used.
...
warning:
unreferenced object 0xffff8801f6914200 (size 512):
comm "swapper/0", pid 1, jiffies 4294893643 (age 2664.644s)
hex dump (first 32 bytes):
00 00 c0 fe 00 00 00 00 ff ff ff ff 00 00 00 00 ................
60 58 2f f6 03 88 ff ff 00 02 00 00 00 00 00 00 `X/.............
backtrace:
[<ffffffff81c2408c>] kmemleak_alloc+0x26/0x43
[<ffffffff8113764f>] __kmalloc+0x121/0x183
[<ffffffff81ca8d93>] get_current_resources+0x5a/0xc6
[<ffffffff81c5bedd>] pci_acpi_scan_root+0x13c/0x21c
[<ffffffff81c2a745>] acpi_pci_root_add+0x1e1/0x421
[<ffffffff81408f50>] acpi_device_probe+0x50/0x190
[<ffffffff8149edc7>] really_probe+0x99/0x126
[<ffffffff8149ef83>] driver_probe_device+0x3b/0x56
[<ffffffff8149effd>] __driver_attach+0x5f/0x82
[<ffffffff8149d860>] bus_for_each_dev+0x5c/0x88
[<ffffffff8149eb87>] driver_attach+0x1e/0x20
[<ffffffff8149e7cc>] bus_add_driver+0xca/0x21d
[<ffffffff8149f47b>] driver_register+0x91/0xfe
[<ffffffff81409d09>] acpi_bus_register_driver+0x43/0x45
[<ffffffff8278bdc9>] acpi_pci_root_init+0x20/0x28
[<ffffffff810001e7>] do_one_initcall+0x57/0x134
The system has _CRS for root buses, but they are not used because the machine
date is before the cutoff date for _CRS usage.
Try to free those unused resource arrays and names.
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2012-02-23 12:01:33 -08:00
..
2012-01-26 11:30:29 +01:00
2011-09-21 10:22:03 +02:00
2011-12-20 15:20:08 +08:00
2012-01-17 16:41:31 -08:00
2012-02-20 10:58:54 -08:00
2012-02-20 19:34:10 -08:00
2012-02-18 10:19:41 -08:00
2012-01-12 15:44:47 +10:30
2012-01-19 14:53:06 -08:00
2012-02-02 11:11:13 -08:00
2012-01-18 16:04:26 -05:00
2011-11-15 11:05:18 +01:00
2012-02-23 12:01:33 -08:00
2012-01-26 10:58:34 +01:00
2011-10-31 19:30:35 -04:00
2011-11-18 17:01:19 -08:00
2011-12-05 14:53:23 +01:00
2012-01-18 19:26:11 -08:00
2011-10-28 05:03:12 -07:00
2011-10-31 19:30:36 -04:00
2012-02-03 16:05:42 -05:00
2012-01-16 08:21:59 +01:00
2011-04-27 23:05:08 -07:00
2012-01-26 11:03:03 +01:00
2012-01-12 20:13:03 -08:00
2012-01-11 19:13:40 -08:00
2011-11-17 13:35:37 -08:00
2011-04-08 13:01:25 -07:00
2011-11-02 14:15:05 +01:00