Hi, the counter has to decremented if the URB cannot be submitted. Greg, please apply.
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-01-10 23:40:33+01:00, [EMAIL PROTECTED] - fix error path in open xpad.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -Nru a/drivers/usb/input/xpad.c b/drivers/usb/input/xpad.c --- a/drivers/usb/input/xpad.c Fri Jan 10 23:41:07 2003 +++ b/drivers/usb/input/xpad.c Fri Jan 10 23:41:07 2003 @@ -200,8 +200,10 @@ return 0; xpad->irq_in->dev = xpad->udev; - if (usb_submit_urb(xpad->irq_in, GFP_KERNEL)) + if (usb_submit_urb(xpad->irq_in, GFP_KERNEL)) { + xpad->open_count--; return -EIO; + } return 0; } =================================================================== This BitKeeper patch contains the following changesets: 1.1250 ## Wrapped with gzip_uu ## begin 664 bkpatch4152 M'XL(``1,'SX``[V4;6^;,!2%/^-?<:5^:=4!]]J$MRE5MC;KIE9;E*F?(UZ< M@)+@S$"7:>R_SX2IU:0U4KMI"`GPP0_'QT><P%TM=6RI37DO-3N!]ZINS*.L M5"6=0FWEIJS:O:/TRHASI8SH]L/N,,--UW:CI:S=MD[YB)F79DF3%6"T.K;( M$0\CS;>=C*WY]/KN]LV<L?$8+HND6LG/LH'QF*7K2=[*C;/6*BGZ[W4/<L<1 MB8B/4(Q\&G4\%,+KR,<T-[<Y#Z)EZD=L<#3YD_??6<+0D',NO*@3/.0ANP)R M>CZ@<)%<0N`B]C`6XAPI1H0C;#@GL)&]A;]?P27+P(9EN0>IM=*P2YH"R@K4 M3E;L!H3',62SQ]R8_<R#,4R07<!*R]5D\)FI;9?K?G6'/73+:M<V[GZ7Y$[6 MV^884$`^)\X["DQ871JFE'D1\F40!")+CX5S%/UK'SP4HO-%%.&A%4_-Z$OR M3WT_AV:LHH\C3AYU/H61/U0F>%EA!-CT/PHSA/H);/WU<)H"S)[,]P5ENN(H M@-B'_L*952[AU%`7=9MNRV;1ZO2T1]L7I?ZR**M7</UNMKB9SC].;\_.X#NS KK$'NW2XRU5:-;;_N:9Z!6C\>?R99(;-UW6['0N32HRAA/P'*4&C\N`0````` ` end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel