Hi,

Here's a patch against 2.4.11-pre1 that fixes a devfs bug in the
usb-skeleton driver.  This code has been in the -ac tree for a while.

thanks,

greg k-h
(temporary USB maintainer)


diff --minimal -Nru a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c
--- a/drivers/usb/usb-skeleton.c        Mon Oct  1 10:48:29 2001
+++ b/drivers/usb/usb-skeleton.c        Mon Oct  1 10:48:29 2001
@@ -1,5 +1,5 @@
 /*
- * USB Skeleton driver - 0.4
+ * USB Skeleton driver - 0.5
  *
  * Copyright (c) 2001 Greg Kroah-Hartman ([EMAIL PROTECTED])
  *
@@ -22,6 +22,7 @@
  *
  * History:
  *
+ * 2001_09_04 - 0.5 - fix devfs bug in skel_disconnect. Thanks to wim delvaux
  * 2001_08_21 - 0.4 - more small bug fixes.
  * 2001_05_29 - 0.3 - more bug fixes based on review from linux-usb-devel
  * 2001_05_24 - 0.2 - bug fixes based on review from linux-usb-devel people
@@ -598,6 +599,9 @@
                
        minor = dev->minor;
 
+       /* remove our devfs node */
+       devfs_unregister(dev->devfs);
+
        /* if the device is not opened, then we clean up right now */
        if (!dev->open_count) {
                skel_delete (dev);
@@ -605,9 +609,6 @@
                dev->udev = NULL;
                up (&dev->sem);
        }
-
-       /* remove our devfs node */
-       devfs_unregister(dev->devfs);
 
        info("USB Skeleton #%d now disconnected", minor);
        up (&minor_table_mutex);
diff --minimal -Nru a/drivers/usb/usb.c b/drivers/usb/usb.c
--- a/drivers/usb/usb.c Mon Oct  1 10:48:29 2001
+++ b/drivers/usb/usb.c Mon Oct  1 10:48:29 2001
@@ -2397,6 +2397,7 @@
 EXPORT_SYMBOL(usb_set_interface);
 EXPORT_SYMBOL(usb_get_configuration);
 EXPORT_SYMBOL(usb_set_configuration);
+EXPORT_SYMBOL(usb_get_status);
 
 EXPORT_SYMBOL(usb_get_current_frame_number);
 


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to