patch-2.3.10 linux/net/rose/af_rose.c
Next file: linux/net/socket.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Jul 5 20:35:18 1999
- Orig file:
v2.3.9/linux/net/rose/af_rose.c
- Orig date:
Wed Oct 7 15:52:55 1998
diff -u --recursive --new-file v2.3.9/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -54,7 +54,6 @@
#include <linux/proc_fs.h>
#include <net/ip.h>
#include <net/arp.h>
-#include <linux/if_arp.h>
#include <linux/init.h>
int rose_ndevs = 10;
@@ -1509,6 +1508,11 @@
for (i = 0; i < rose_ndevs; i++) {
dev_rose[i].name = kmalloc(20, GFP_KERNEL);
+ if(dev_rose[i].name == NULL)
+ {
+ printk(KERN_ERR "Rose: unable to register ROSE devices.\n");
+ break;
+ }
sprintf(dev_rose[i].name, "rose%d", i);
dev_rose[i].init = rose_init;
register_netdev(&dev_rose[i]);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)