Hi,
When checking if all minors are used don't read beyond
p_scn_table (Sergey Vlasov).
Bye,
Henning
--- linux-2.4.22-pre6.newids8/drivers/usb/scanner.c 2003-07-15 12:01:23.000000000
+0200
+++ linux-2.4.22-pre6.maxminor/drivers/usb/scanner.c 2003-07-15 18:18:35.000000000
+0200
@@ -370,6 +370,8 @@
* 0.4.14 2003-07-15
* - Added vendor/product ids for Avision, Canon, HP, Microtek and Relisys
* scanners.
+ * - When checking if all minors are used don't read beyond p_scn_table
+ * (Sergey Vlasov).
*
* TODO
* - Performance
@@ -982,7 +984,7 @@
}
/* Check to make sure that the last slot isn't already taken */
- if (p_scn_table[scn_minor]) {
+ if (scn_minor >= SCN_MAX_MNR) {
err("probe_scanner: No more minor devices remaining.");
up(&scn_mutex);
return NULL;
-------------------------------------------------------
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