patch-pre2.0.5 linux/net/core/dev.c

Next file: linux/net/core/iovec.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.4/linux/net/core/dev.c linux/net/core/dev.c
@@ -45,6 +45,8 @@
  *		Alan Cox	:	Cleaned up the backlog initialise.
  *		Craig Metz	:	SIOCGIFCONF fix if space for under
  *					1 device.
+ *	    Thomas Bogendoerfer :	Return ENODEV for dev_open, if there
+ *					is no device open function.
  *
  */
 
@@ -236,7 +238,7 @@
  
 int dev_open(struct device *dev)
 {
-	int ret = 0;
+	int ret = -ENODEV;
 
 	/*
 	 *	Call device private open method

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