On Sat, May 18, 2013 at 12:14:08PM -0400, Alan Stern wrote: > On Sat, 18 May 2013, Hans de Goede wrote: > > But the sysfs descriptors file will just packs the > > rawdescriptors one behind the other, using > > usb_device->config[x].desc.wTotalLength, where as > > userspace only sees the length advertised by > > the rawdescriptors, which may be different, and when > > it is userspace will this have no idea where the next > > descriptor starts. > > > > I believe the proper way to fix this is to make the > > sysfs code deal with this the same way the usbfs code > > does (filling the holes with 0 to avoid leaking kmem), > > if people agree I can write a patch for this. > > That's okay with me.
Sounds good to me as well. thanks, greg k-h ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel