[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-usb-devel
Subject: Re: [linux-usb-devel] Patch (2.4.6) for my Dimage Camera
From: Olivier Chapuis <olivier.chapuis () free ! fr>
Date: 2004-06-17 9:26:33
Message-ID: 20040617092632.GA5286 () snoopy ! folie
[Download RAW message or body]
On Wed, Jun 16, 2004 at 01:41:49PM -0400, Alan Stern wrote:
> On Tue, 15 Jun 2004, Olivier Chapuis wrote:
>
> > On Mon, Jun 14, 2004 at 11:25:43AM -0400, Alan Stern wrote:
> > > On Sat, 12 Jun 2004, Olivier Chapuis wrote:
> > >
> > > > - I take a look to the 2.6 code (usb/core/config.c) and I do not
> > > > think that my camera will be recognized by a 2.6 kernel ... sorry
> > > > no patch.
> > >
> > > I would be surprised if it didn't work. Have you tried it? What do you
> > > think might be wrong with the code?
> > >
> >
> > I've not the time to install a 2.6 kernel, sorry. Any way I think it
> > will not work for exactly the same reasons than for the 2.4.26 kernel.
> > size will become negative in the find_next_descriptor function
> > (drivers/usb/core/config.c) going "out of descriptors parsing".
>
> That can never happen in 2.6. All the descriptors are checked in
> usb_parse_configuration() before find_next_descriptor() is called. If a
> descriptor has bLength > size2 then that descriptor and everything
> following are ignored.
>
Yes, I miss this part of the code. Note that in 2.6.6 my camera
is not recognized (an error is generated when bLength > size2).
With the just released 2.6.7, everything seems fine (not tested).
Does someone care about the problem for the 2.4 branch?
Regards, Olivier
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic