Here's a new patch based on Linus latest one with better error checking.Please push if you are fine with it.

This patch fixes a problem with pci_map_rom() which doesn't properlyupdate the ROM BAR value with the address thas allocated for it by thePCI code. This problem, among other, breaks boot on Mac laptops.