Re: [PATCH] hci-usb bugfix

From: Oliver Neukum
Date: Mon May 10 2004 - 14:16:46 EST


Am Montag, 10. Mai 2004 18:52 schrieb Marcel Holtmann:
> Hi Oliver,
>
> > > > It looks like the problem is that hci_usb_disconnect() is trying to do too
> > > > much. When called for the SCO interface it should simply return.
> > >
> > > I came to the same conclusion, but I used the attached patch.
> >
> > Which is wrong. It assumes that interfaces are disconnected in a certain
> > order, which happens only by chance in your case.
>
> why is it wrong? If interface 0 is disconnected first then we go into
> the disconnect routine and cleanup. But if interface 1 is disconnected
> first, we don't do anything and "wait" for the disconnect on first
> interface.

Which not necessarily will ever come. It is possible that just one
interface is disconnected.

Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/