patch-2.4.2 linux/arch/m68k/atari/hades-pci.c

Next file: linux/arch/m68k/atari/stram.c
Previous file: linux/arch/ia64/sn/io/xtalk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/arch/m68k/atari/hades-pci.c linux/arch/m68k/atari/hades-pci.c
@@ -17,7 +17,7 @@
 
 #if defined(CONFIG_PCI) && defined(CONFIG_HADES)
 
-#include <linux/malloc.h>
+#include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/pci.h>
 
@@ -372,6 +372,8 @@
 	 */
 
 	bus = kmalloc(sizeof(struct pci_bus_info), GFP_KERNEL);
+	if (!bus)
+		return NULL;
 	memset(bus, 0, sizeof(struct pci_bus_info));
 
 	/*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)