Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci

Pull PCI fixes from Jesse Barnes:
"A couple of fixes for booting specific machines, and one for a minor
memory leak on pre-_CRS platforms."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci:
x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
x86/PCI: use host bridge _CRS info on MSI MS-7253
PCI: fix memleak when ACPI _CRS is not used.

+17 -5
+17 -5
arch/x86/pci/acpi.c
··· 60 60 DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."), 61 61 }, 62 62 }, 63 + /* https://bugzilla.kernel.org/show_bug.cgi?id=42619 */ 64 + { 65 + .callback = set_use_crs, 66 + .ident = "MSI MS-7253", 67 + .matches = { 68 + DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), 69 + DMI_MATCH(DMI_BOARD_NAME, "MS-7253"), 70 + DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies, LTD"), 71 + }, 72 + }, 63 73 64 74 /* Now for the blacklist.. */ 65 75 ··· 292 282 int i; 293 283 struct resource *res, *root, *conflict; 294 284 295 - if (!pci_use_crs) 296 - return; 297 - 298 285 coalesce_windows(info, IORESOURCE_MEM); 299 286 coalesce_windows(info, IORESOURCE_IO); 300 287 ··· 343 336 acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource, 344 337 &info); 345 338 346 - add_resources(&info); 347 - return; 339 + if (pci_use_crs) { 340 + add_resources(&info); 341 + 342 + return; 343 + } 344 + 345 + kfree(info.name); 348 346 349 347 name_alloc_fail: 350 348 kfree(info.res);