Am Sonntag, 5. September 2004 12:41 schrieb Ben Castricum: > Hi Oliver, > > > #1 Please change line 50 of cdc-acm.c from "#undef DEBUG" to "#define > > DEBUG" > > #2 Recompile kernel or modules > > #3 Send in a syslog not of a reboot, but of plugging in the device > > I did all that, but it doesn't show any more info than with a reboot. The 2 > lines I get when plugging in the device are > > Sep 5 11:19:40 gateway kernel: usb 1-2: new full speed USB device using > address 3 > Sep 5 11:19:40 gateway kernel: cdc_acm 1-2:1.0: No union descriptor, giving > up > > Should I be seeing more?
Please apply this diagnostic patch, recompile with debug and send in the syslog. 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], 2004-09-05 22:19:48+02:00, [EMAIL PROTECTED] - more sanity checking cdc-acm.c | 5 +++++ 1 files changed, 5 insertions(+) diff -Nru a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c --- a/drivers/usb/class/cdc-acm.c Sun Sep 5 22:21:07 2004 +++ b/drivers/usb/class/cdc-acm.c Sun Sep 5 22:21:07 2004 @@ -547,6 +547,11 @@ return -EINVAL; } + if (!buflen) { + err("Zero length descriptor references"); + return -EINVAL; + } + while (buflen > 0) { if (buffer [1] != USB_DT_CS_INTERFACE) { err("skipping garbage"); =================================================================== This BitKeeper patch contains the following changesets: 1.1824 ## Wrapped with gzip_uu ## M'XL( #-U.T$ [V476_3,!2&K^M?<=AN-DU-;,=VTJ"BC3&[EMAIL PROTECTED])U M3MIH23S9R6 B_'?25G1,0BU,"-LW/CY^==[C1]Z'*X\N'=BRN$5']N&E]4V_ MQ=K6&"QLA651MU\#Z^;]X=3:_C!<AD-;[EMAIL PROTECTED]/WSE$'RYS/%>[EMAIL PROTECTED] M@ 71)M+<W6 ZF)Z=7UV>3 D9C^%TH>LYOL4&QF/26'>KR\P?ZV91VCIHG*Y] MA8T.C*VZ36K'*>7]E"R.J%0=4U3$G6$98UHPS"@7B1)D[>;X=RX>:@F:1(PI M*1CO1"2I(B^ !2SA J@(Z2BD$CA/[EMAIL PROTECTED]'E*:6P11N.& PI>0[_ULTI,3"$ MRCH$K^NBN0.S0'-=U'/R"D24C!29W'>3#/]R$$(U)<]V%)VYI6T?MGX6:E,% MYI?B!65Q)U4\4MW,1#)G+.<BRB.,9]O:]4#3E-K[T&1FN%$7=$0EIRSIFR*7 MVQ4V6R[M!NF1+GX"56-[W5;+VC_.'<X_[W:0<,6Y5$(L\8K7>"GU$*XD%?&? MP"7_.USKKK^!H?NR6CTLDVT/\ [EMAIL PROTECTED](H>#)[,V+[$^A&]D,$#G#O8^ MH+/0A^;- C+TQA4WO7UPF*/#VJ#?.WS:YSIL6E?#\.SB]?N3RS[RG7RZ_XQ6 3AGQ;C6.-6F8YDA]?8'#<[EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel