patch-2.4.0-test8 linux/drivers/net/ac3200.c

Next file: linux/drivers/net/defxx.c
Previous file: linux/drivers/net/8139too.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/drivers/net/ac3200.c linux/drivers/net/ac3200.c
@@ -139,6 +139,9 @@
 	if (dev == NULL) {
 		printk("ac3200.c: Passed a NULL device.\n");
 		dev = init_etherdev(0, 0);
+
+		if (!dev)
+			return -ENOMEM;
 	}
 
 	printk("AC3200 in EISA slot %d, node", ioaddr/0x1000);

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