patch-1.3.25 linux/drivers/net/ni65.c

Next file: linux/drivers/net/plip.c
Previous file: linux/drivers/net/ni52.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.24/linux/drivers/net/ni65.c linux/drivers/net/ni65.c
@@ -244,6 +244,8 @@
         request_region(ioaddr,NI65_TOTAL_SIZE,"ni65");
 
   p = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL);
+  if (p == NULL)
+   	return -ENOMEM;
   memset((char *) dev->priv,0,sizeof(struct priv));
 
   dev->open               = ni65_open;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this