Hi,
This patch from Oliver Neukum fixes a race between open and
probe.
Bye,
Henning
diff -u -r linux-2.6.0-test1/drivers/usb/image/scanner.c
linux-2.6.0-test1.openrace/drivers/usb/image/scanner.c
--- linux-2.6.0-test1/drivers/usb/image/scanner.c 2003-07-14 05:32:29.000000000
+0200
+++ linux-2.6.0-test1.openrace/drivers/usb/image/scanner.c 2003-07-15
11:26:35.000000000 +0200
@@ -364,6 +364,9 @@
* Mustek, Pacific Image Electronics, Plustek, and Visioneer scanners.
* Fixed names of some other scanners.
*
+ * 0.4.14 2003-07-15
+ * - Fixed race between open and probe (Oliver Neukum).
+ *
* TODO
* - Performance
* - Select/poll methods
@@ -1117,10 +1120,9 @@
info ("USB scanner device (0x%04x/0x%04x) now attached to %s",
dev->descriptor.idVendor, dev->descriptor.idProduct, name);
- up(&scn_mutex);
-
usb_set_intfdata(intf, scn);
-
+ up(&scn_mutex);
+
return 0;
}
diff -u -r linux-2.6.0-test1/drivers/usb/image/scanner.h
linux-2.6.0-test1.openrace/drivers/usb/image/scanner.h
--- linux-2.6.0-test1/drivers/usb/image/scanner.h 2003-07-14 05:33:11.000000000
+0200
+++ linux-2.6.0-test1.openrace/drivers/usb/image/scanner.h 2003-07-15
11:26:50.000000000 +0200
@@ -43,7 +43,7 @@
// #define DEBUG
-#define DRIVER_VERSION "0.4.13"
+#define DRIVER_VERSION "0.4.14"
#define DRIVER_DESC "USB Scanner Driver"
#include <linux/usb.h>
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel