--- drivers/pci/probe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux/drivers/pci/probe.c =================================================================== --- linux.orig/drivers/pci/probe.c +++ linux/drivers/pci/probe.c @@ -34,7 +34,7 @@ LIST_HEAD(pci_devices); static void pci_create_legacy_files(struct pci_bus *b) { b->legacy_io = kzalloc(sizeof(struct bin_attribute) * 2, - GFP_ATOMIC); + GFP_KERNEL); if (b->legacy_io) { b->legacy_io->attr.name = "legacy_io"; b->legacy_io->size = 0xffff; @@ -52,7 +52,8 @@ static void pci_create_legacy_files(stru b->legacy_mem->attr.owner = THIS_MODULE; b->legacy_mem->mmap = pci_mmap_legacy_mem; class_device_create_bin_file(&b->class_dev, b->legacy_mem); - } + } else + printk(KERN_ERR "PCI: Cannot allocate memory\n"); } void pci_remove_legacy_files(struct pci_bus *b)