patch-1.3.25 linux/drivers/net/sk_g16.c
Next file: linux/drivers/net/tunnel.c
Previous file: linux/drivers/net/seeq8005.c
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Thu Sep  7 17:11:47 1995
 -  Orig file: 
v1.3.24/linux/drivers/net/sk_g16.c
 -  Orig date: 
Tue Aug  8 12:31:37 1995
 
diff -u --recursive --new-file v1.3.24/linux/drivers/net/sk_g16.c linux/drivers/net/sk_g16.c
@@ -788,6 +788,8 @@
 
     /* Allocate memory for private structure */
     p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
+    if (p == NULL)
+	   return -ENOMEM;
     memset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
 
     /* Assign our Device Driver functions */
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