patch-2.2.17 linux/drivers/net/hydra.c
Next file: linux/drivers/net/lmc/Makefile
Previous file: linux/drivers/net/hostess_sv11.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Sep 4 18:39:19 2000
- Orig file:
v2.2.16/drivers/net/hydra.c
- Orig date:
Mon Sep 4 18:37:25 2000
diff -u --recursive --new-file v2.2.16/drivers/net/hydra.c linux/drivers/net/hydra.c
@@ -3,7 +3,7 @@
/* also some code & lots of fixes by Timo Rossi (trossi@cc.jyu.fi) */
/* The code is mostly based on the linux/68k Ariadne driver */
-/* copyrighted by Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) */
+/* copyrighted by Geert Uytterhoeven (geert@linux-m68k.org) */
/* and Peter De Schrijver (Peter.DeSchrijver@linux.cc.kuleuven.ac.be) */
/* This file is subject to the terms and conditions of the GNU General */
@@ -14,6 +14,10 @@
/* NS8390 NIC (network interface controller) clone, 16 or 64K on-board RAM */
/* and 10BASE-2 (thin coax) and AUI connectors. */
+/* Changes: */
+/* Arnaldo Carvalho de Melo <acme@conectiva.com.br> - 08/15/2000 */
+/* - check resource allocation in hydra_probe */
+
#include <linux/module.h>
#include <linux/kernel.h>
@@ -183,6 +187,10 @@
init_etherdev(dev, 0);
dev->priv = kmalloc(sizeof(struct hydra_private), GFP_KERNEL);
+
+ if (!dev->priv)
+ return -ENOMEM;
+
priv = (struct hydra_private *)dev->priv;
memset(priv, 0, sizeof(struct hydra_private));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)