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

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

diff -u --recursive --new-file v1.3.24/linux/drivers/net/de4x5.c linux/drivers/net/de4x5.c
@@ -588,6 +588,8 @@
 	*/
 	dev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
 				                                   GFP_KERNEL);
+	if (dev->priv == NULL)
+		return -ENOMEM;
 	/*
 	** Align to a longword boundary
 	*/

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