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

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, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this