patch-2.3.24 linux/drivers/usb/acm.c

Next file: linux/drivers/usb/cpia.c
Previous file: linux/drivers/sound/nm256_coeff.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/drivers/usb/acm.c linux/drivers/usb/acm.c
@@ -486,8 +486,8 @@
 	if (!acm->present)
 		return;
 
-	printk("disconnecting\n");
-	
+	acm->active=0;
+	acm->present=0;
 	if (acm->writing){
 		usb_terminate_bulk(acm->dev, acm->writetransfer);
 		acm->writing=0;
@@ -498,8 +498,6 @@
 	}
 	usb_release_irq(acm->dev,acm->ctrltransfer, acm->ctrlpipe);
 	//BUG: What to do if a device is open?? Notify process or not allow cleanup?
-	acm->active=0;
-	acm->present=0;
 	kfree(acm->writebuffer);
 	kfree(acm->readbuffer);
 

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