Hi,

if we wrote some bytes we need to admit it even if we'd otherwise return
-EAGAIN. Any news on Linus' printing problem incidentally?

        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-11-07 23:38:09+01:00, [EMAIL PROTECTED]
  - correct error reporting


 usblp.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
--- a/drivers/usb/class/usblp.c Thu Nov  7 23:41:02 2002
+++ b/drivers/usb/class/usblp.c Thu Nov  7 23:41:02 2002
@@ -599,7 +599,7 @@
                if (!usblp->wcomplete) {
                        barrier();
                        if (file->f_flags & O_NONBLOCK)
-                               return -EAGAIN;
+                               return count ? count : -EAGAIN;
 
                        timeout = USBLP_WRITE_TIMEOUT;
                        add_wait_queue(&usblp->wait, &wait);

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


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


begin 664 bkpatch1456
M'XL(`/[KRCT``ZU4[6K;,!3]'3W%A?XLL:\D?X]LR=K2E8TM9/0!;$6.C1TK
MR'*S@!]^BA,2.M+NHQ,7)-_C>W2D>]`5/+92)R-5ET]2DROXI%IC/V6C&ND4
M:BWKLNE^.$JO++A0RH+N/NT>*MRL&ALM9>MNE:Z83^Q?\]2(`BS8)B/J\%/&
M[#8R&2WN[A^_S!:$3"9P4Z3-2GZ7!B83DE7392=KI](J+?8;]B>X9XB44N8C
M]P/J]RSBW.MI@-G2+I<LC/,LB,E!TO22^.=<C%(,*6<AMUPT9!&Y!>K$`0(R
MEU(70V`\X5&"\372!!%>H89K"F,D'^'M![@A`L8@E-92&)!:*PU:;I0V9;,B
MGZTHRGTR/]\;&?_E(`13).\O:%WJ_0E;MVLS=Z/+QDCMB+-N#V,:])QY+.ZS
M/,4HYG'HI3ERD;]V.\]X19VVPZK>'+B'1C#&`Q[TZ(5^--CBQ9++-GF#<K+2
M<C4]4`FU_IU8Y#9\'\,>N8=\<(W_BVD"&W]H&OH?35/FL)60:@EV,\AJ)2KK
MF7UNW;7&NLATN@%36+Q;9U*#RB';&=G::H"M+HV1S9&E2)_D*94V.^N\H3??
M8*RW0U@CS5]NTS^X\C9`!I0\'*:1'4?%0G6-@0_'.8'QW>Q^]O#UW?FA$844
45=NM)UD644]&'OD)S183@-4$````
`
end



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to