patch-1.3.26 linux/drivers/net/dummy.c
Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Sep 11 14:26:35 1995
- Orig file:
v1.3.25/linux/drivers/net/dummy.c
- Orig date:
Sat Sep 9 15:26:52 1995
diff -u --recursive --new-file v1.3.25/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -159,6 +159,8 @@
sprintf(dev_dummy.name,"dummy%d",ct);
ct++;
}
+ if(ct==100)
+ return -ENFILE;
if (register_netdev(&dev_dummy) != 0)
return -EIO;
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