Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c51aa6db authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull PCI fixes from Bjorn Helgaas:
 "This fixes a crash when booting a 32-bit kernel via the EFI boot stub.

  PCI ROM from EFI
      x86/PCI: Map PCI setup data with ioremap() so it can be in highmem"

* tag 'pci-v3.10-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
  x86/PCI: Map PCI setup data with ioremap() so it can be in highmem
parents e6395b68 65694c5a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -628,7 +628,9 @@ int pcibios_add_device(struct pci_dev *dev)

	pa_data = boot_params.hdr.setup_data;
	while (pa_data) {
		data = phys_to_virt(pa_data);
		data = ioremap(pa_data, sizeof(*rom));
		if (!data)
			return -ENOMEM;

		if (data->type == SETUP_PCI) {
			rom = (struct pci_setup_rom *)data;
@@ -645,6 +647,7 @@ int pcibios_add_device(struct pci_dev *dev)
			}
		}
		pa_data = data->next;
		iounmap(data);
	}
	return 0;
}