patch-2.4.11-dontuse linux/drivers/usb/microtek.c

Next file: linux/drivers/usb/pegasus.h
Previous file: linux/drivers/usb/mdc800.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/drivers/usb/microtek.c linux/drivers/usb/microtek.c
@@ -116,6 +116,7 @@
  *	20010320 check return value of scsi_register()
  *	20010320 Version 0.4.3
  *	20010408 Identify version on module load.
+ *	20011003 Fix multiple requests
  */
 
 #include <linux/module.h>
@@ -500,7 +501,6 @@
 		      context
 		);
 
-	transfer->transfer_flags = USB_ASYNC_UNLINK;
 	transfer->status = 0;
 
 	res = usb_submit_urb( transfer );
@@ -520,7 +520,6 @@
 
 	if ( context->final_callback )
 		context->final_callback(context->srb);
-	up( &context->instance->lock );
 
 }
 
@@ -710,7 +709,6 @@
 		goto out;
 	}
 
-	down(&desc->lock);
 	
 	FILL_BULK_URB(&desc->urb,
 		      desc->usb_dev,
@@ -733,7 +731,6 @@
 
 		if(callback)
 			callback(srb);
-	        up(&desc->lock);
 
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)