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
- Lines: 18
- Date:
Thu May 16 16:35:55 1996
- Orig file:
pre2.0.4/linux/net/core/dev.c
- Orig date:
Mon May 13 23:02:51 1996
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