Re: [PATCH] Fix lsusb double-free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 25, 2011 at 09:23:21AM +0200, Carl-Daniel Hailfinger wrote:
> Am 25.05.2011 00:18 schrieb Greg KH:
> > On Wed, May 25, 2011 at 12:02:48AM +0200, Carl-Daniel Hailfinger wrote:
> >   
> >> I was playing with the "authorized" attribute of USB devices in
> >> sysfs.
> >> If at least one device has authorized=0, 
> >> "lsusb" will print nothing (not even the host controllers)
> >>     
> > Well, if the device can't be accessed, as you disabled it through the
> > authorised=0 setting, lsusb shouldn't really be able to do much with it.
> >   
> 
> Turns out there are two bugs:
> libusb screws up walking the bus and claims there are -1 devices (error).
> lsusb ignores that and tries to free a nonexisting object.
> 
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@xxxxxxx>

Now applied, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux