I'm pretty sure this is a bug. The initialization isn't stopping on an error.
It might we worthwhile to check the kern_mount() and proc_mkdir() also...
(-ENOMEM is always possible...)
diff -ur 2.4.4-clean/drivers/usb/inode.c linux/drivers/usb/inode.c
--- 2.4.4-clean/drivers/usb/inode.c Fri Mar 2 16:47:21 2001
+++ linux/drivers/usb/inode.c Thu May 17 21:54:49 2001
@@ -689,8 +689,10 @@
}
if ((ret = usb_register(&usbdevfs_driver)))
return ret;
- if ((ret = register_filesystem(&usbdevice_fs_type)))
+ if ((ret = register_filesystem(&usbdevice_fs_type))) {
usb_deregister(&usbdevfs_driver);
+ return ret;
+ }
kern_mount(&usbdevice_fs_type);
#ifdef CONFIG_PROC_FS
/* create mount point for usbdevfs */
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel