patch-2.3.10 linux/net/netrom/af_netrom.c
Next file: linux/net/netsyms.c
Previous file: linux/net/irda/irmod.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/netrom/af_netrom.c
- Orig date:
Thu Jan 7 09:27:47 1999
diff -u --recursive --new-file v2.3.9/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -63,7 +63,6 @@
#include <linux/proc_fs.h>
#include <net/ip.h>
#include <net/arp.h>
-#include <linux/if_arp.h>
#include <linux/init.h>
int nr_ndevs = 4;
@@ -1311,6 +1310,11 @@
for (i = 0; i < nr_ndevs; i++) {
dev_nr[i].name = kmalloc(20, GFP_KERNEL);
+ if(dev_nr[i].name==NULL)
+ {
+ printk(KERN_ERR "Netrom: unable to register devices.\n");
+ break;
+ }
sprintf(dev_nr[i].name, "nr%d", i);
dev_nr[i].init = nr_init;
register_netdev(&dev_nr[i]);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)