Hi, acm uses a workqueue to defer part of a write operation. In case of disconnect this work must be waited for.
Regards Oliver Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. =================================================================== [EMAIL PROTECTED], 2004-05-31 15:12:13+02:00, [EMAIL PROTECTED] - fix race between write and disconnect cdc-acm.c | 2 ++ 1 files changed, 2 insertions(+) diff -Nru a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c --- a/drivers/usb/class/cdc-acm.c Mon May 31 15:13:14 2004 +++ b/drivers/usb/class/cdc-acm.c Mon May 31 15:13:14 2004 @@ -691,6 +691,8 @@ usb_unlink_urb(acm->readurb); usb_unlink_urb(acm->writeurb); + flush_scheduled_work(); /* wait for acm_softint */ + kfree(acm->ctrlurb->transfer_buffer); usb_driver_release_interface(&acm_driver, acm->data); =================================================================== This BitKeeper patch contains the following changesets: 1.1761 ## Wrapped with gzip_uu ## M'XL( &LONT [6446_3,!#'G^M/<=)>8%,3GQTG;5#18"! (%$5]H94N8ZS M1$UBL)T%I'QXTA6U%+06)K#]8/GLN_O?_>0SN';:IB-3E;?:DC-X;9Q/1[54 M*^V+H-'MNJT#8V\&T\*8P106IM;A]G[XT6KM0B\9&>QSZ54!P[%+1QCPW8G_ M]EFGH\7+5]?OGBT(F<[EMAIL PROTECTED]@/<QFQ!M[*ZO,74I?5*8)O)[EMAIL PROTECTED])U MO[O:,TK9, 4FG(JXQYA&2:\P0Y01ZHRR:!)'9)O8Y>\"#CU%5'[EMAIL PROTECTED] M$TY> :8Q @T"JD(.0**%%F*_(*RE%*XUS-<((PI>0[_5LD543"&O/P*5BH- [EMAIL PROTECTED]:.5)V]A$#&-R'Q?6C+^RT$(E90\/:$BLYLJN+!U MJU"J.E _J8DH)KV(DVG<KQ07.6+.(IYSG:SNK]Z!1U5)YT*5J?'.]X].(0K6 MXY1/\8Z@(X].,_5 #4?8^C,-FTV/T02WM/W*&J:"G6:-_3_6.EEZR([EMAIL PROTECTED] M?&EUJ\$TAYQM6_ >QK:[6P,W\V/=> "&;^(I!T9&>=6Z8NE4H;.VTMERD]6C JQT\@/-]G.L18.I/[LO%P'I)/^W]H>*;6KJUGF:1<:):1[R*TECOL! ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel