pci: fix memory allocation type

Either check the value (and use MEM_ATOMIC) or use MEM_WAIT.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
diff --git a/kern/arch/x86/pci.c b/kern/arch/x86/pci.c
index a00d4ae..41a3be8 100644
--- a/kern/arch/x86/pci.c
+++ b/kern/arch/x86/pci.c
@@ -248,7 +248,8 @@
 						break;
 					continue;
 				}
-				pcidev = kzmalloc(sizeof(struct pci_device), 0);
+				pcidev = kzmalloc(sizeof(struct pci_device),
+						  MEM_WAIT);
 				/* we don't need to lock it til we post the
 				 * pcidev to the list*/
 				spinlock_init_irqsave(&pcidev->lock);