On Mon, 29 Nov 2004, Oliver Neukum wrote:
> Am Montag, 29. November 2004 18:20 schrieb Alan Stern:
> +
> +���������������/* don't allow the user to unbind the hub driver from
> +��������������� * a hub with children to manage */
> +���������������for (i = 0; i < ps->dev->maxchild; ++i) {
> +�����������������������if (ps->dev->children[i])
> +�������������������������������retval = -EBUSY;
> +���������������}
> +���������������if (retval)
> +�����������������������break;
> +
>
> Are you sure locking is sufficient here?
Yes. This code executes with ps->dev locked, and the children[] array
isn't changed without holding the device lock.
Alan Stern
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel