Re: [linux-usb-devel] Re: [OOPS, usbcore, releaseintf] 2.6.0-test10-mm1

From: Duncan Sands
Date: Thu Dec 11 2003 - 16:25:20 EST


> It should handle that okay (provided you retain a reference to the
> usb_device so that it doesn't get deallocated). Although it wouldn't hurt
> to change one of the tests from
>
> if (dev->state != USB_STATE_ADDRESS)
>
> to
>
> if (dev->state > USB_STATE_ADDRESS)

By the way, my patch tests for disconnect in usbfs by doing:

if (dev->state == USB_STATE_NOTATTACHED)
run_away();

Is this right?

Thanks,

Duncan.
-
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/