Hi,

checking for -EINPROGRESS is wrong.

        Regards
                Oliver

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], 2002-12-17 17:34:28+01:00, [EMAIL PROTECTED]
  - fix unlink race


 speedtouch.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c
--- a/drivers/usb/misc/speedtouch.c     Tue Dec 17 17:34:55 2002
+++ b/drivers/usb/misc/speedtouch.c     Tue Dec 17 17:34:55 2002
@@ -852,8 +852,7 @@
                if ((!ctx->urb) || (!ctx->skb))
                        continue;
 
-               if (ctx->urb->status == -EINPROGRESS)
-                       usb_unlink_urb (ctx->urb);
+               usb_unlink_urb (ctx->urb);
 
                usb_free_urb (ctx->urb);
                kfree_skb (ctx->skb);
@@ -863,8 +862,7 @@
        for (i = 0; i < UDSL_NUMBER_SND_URBS; i++) {
                struct udsl_usb_send_data_context *ctx = &(instance->send_ctx[i]);
 
-               if (ctx->urb->status == -EINPROGRESS)
-                       usb_unlink_urb (ctx->urb);
+               usb_unlink_urb (ctx->urb);
 
                if (ctx->skb)
                        ctx->vcc->pop (ctx->vcc, ctx->skb);

===================================================================


This BitKeeper patch contains the following changesets:
1.1118
## Wrapped with gzip_uu ##


begin 664 bkpatch13610
M'XL(`"]2_ST``[54T8J<,!1]GGS%A7UI6=0D)C%:7*;=+6WI0H<I^[QHC#HX
M8Y:H[13\^,:QS%(H=KMM)6#,N3DY]WC(!=QUVB8KL]]]T19=P'O3]>Y3MZ;5
M?FT.>K]KAZ-O;.7`K3$.#*;E8-X1Y(W76ZV[H+*4(U>[EMAIL PROTECTED]$7\\+S2
M?WO0R6K[]MW=[>LM0FD*UW765OJS[B%-4=ZLBT'O_<::K)Z.&\_P2#$FA%".
M0RX('ZD,0S82@?/"30L:Q64N8C0+6O]*^L]<E%`2$4%B3D;&8X[1#1#?G2`!
MTX"X$0&)DI`E5%YBDF`,"]QP2<##Z`W\?0?72($'Y>X(0^OX&["9TN@C3"(9
MVCP:AKP_?!#"&4974%E=K6>!RAS&PDYM=<'0Y<%AUZF@>]"ZZ,V@''ZR"DL:
M36\J1\QX),9)<4EB%C,98UZ42]8\@7_^%2%S_&',)3T%8W';%)9_W\9B>I[:
MQH]$<<'F1(7/RQ,%C_W7/,U.?P+/?CT-EX_-LNG/"-R-Y!PH^B"Y`()6*\=[
M/\NX'VP.+U1_]*[<[.4K5RK$J51$ORL]7R>JUJKIAD-:,B58+B3Z#O+-9+G+
#!```
`
end



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to