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

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

diff -u --recursive --new-file v1.3.24/linux/drivers/net/wavelan.c linux/drivers/net/wavelan.c
@@ -1015,6 +1015,8 @@
 		printk(version);
 
 	dev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
+	if (dev->priv == NULL)
+		return -ENOMEM;
 	memset(dev->priv, 0x00, sizeof(net_local));
 	lp = (net_local *)dev->priv;
 

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