Johannes Erdfelt <[EMAIL PROTECTED]> writes:

> On Sat, Jan 05, 2002, Peter Osterlund <[EMAIL PROTECTED]> wrote:
> > Johannes Erdfelt <[EMAIL PROTECTED]> writes:
> > 
> > > Also, if header->bLength is < 2, then we'll almost always get an oops,
> > > not just if the device disappears quickly.
> > 
> > That's another strange thing. I added code to explicitly set bLength
> > to 0, just to trigger this error condition. Then I added debug
> > messages in usb_destroy_configuration to see what would happen, and
> > the kfree(as->extra) line was never executed. It didn't even
> > kfree(ifp->altsetting), so this looks like a memory leak.
> 
> Did you add the debugging before or after your patch (or Greg's patch)?

That was before my patch, but I explicitly initialized the pointers to
0xDEADBEEF to be able to recognize them in usb_destroy_configuration.
At least this problem is repeatable, so I can try to figure out
exactly why the memory is not freed.

-- 
Peter Osterlund - [EMAIL PROTECTED]
http://w1.894.telia.com/~u89404340

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to