Hi,

Alan, does this fix the race you saw in usblp_write concerning
urb->status?

        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], 2003-07-27 19:22:22+02:00, [EMAIL PROTECTED]
  - fix timeout handling


 usblp.c |    6 ++++++
 1 files changed, 6 insertions(+)


diff -Nru a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
--- a/drivers/usb/class/usblp.c Sun Jul 27 19:23:04 2003
+++ b/drivers/usb/class/usblp.c Sun Jul 27 19:23:04 2003
@@ -626,6 +626,12 @@
                                }
                        }
                        remove_wait_queue(&usblp->wait, &wait);
+                       if (!timeout) {
+                               /* we timed out and need to bail out cleanly */
+                               usb_unlink_urb(usblp->writeurb);
+                               return writecount ? writecount : -EIO;
+                       }
+
                }
 
                down (&usblp->sem);

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


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


begin 664 bkpatch2429
M'XL(`'@*)#\``[V46V^;,!3'G_&G.%-?>A'@"[EMAIL PROTECTED]>MJ]9JDQIEZ]NDBHM)
M4`A$!B^KRK[[C)F:54NZ2Z4A/YP[/[EMAIL PROTECTED]
MN:B=6JBE6CF-G.O<K&ETSETT*^&.#>XG*43KJC:UJ>,C73--NFP!.M7&%G'8
M0Z2[6XO8FEV\N_GP>H;09`+GBZ2>[EMAIL PROTECTED]<NS7(G*6<HF60ROZQ_2/<68
M$$)]S/R`^#T-&?-Z$N`TUV9.>52D081&H+,=Y(]',<RIKZ=Y7MA[`2,!>@O$
MH<3C@)F+N4LYD"BF5)\33&.,8?]H."[EMAIL PROTECTED]&GL]_CC*PH2B_0E>N1*,ZT`/R
MJJSGZ#T,H!Q-MSM#]E\^".$$H],=H+D<OLY<HKN69=T)Z61;:`]')[EMAIL PROTECTED]
MIT6"PXA%W$L*S++BB<T\&IM526NL:CV.'BZ!$TXIQ3V-0DZ-(O:V[%;(,\"?
M4LMOP4?U!#WA/AW5PW_5#OX#[03_13OC?J_!EAMSM!:F^U?]#\*Z"F@(`;(L
[EMAIL PROTECTED],4/A".X'T*6>PP;8;AR&,@T&-1".UT#:5)6)IA5(JFK.SAV38]FN56U
MYE_>*ID>&C3[="/+3FC_Z*4IDJ)[EMAIL PROTECTED]<&^^+JVI1^0Y^WOZ9L
6(;)EJU:3T*?,SUF"O@/<6-H]!`4`````
`
end



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to