usb: gadget zero timer init fix
authorDavid Lopo <lopo.david@gmail.com>
Sat, 19 Apr 2008 01:49:01 +0000 (18:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 May 2008 17:25:54 +0000 (10:25 -0700)
commit7a6ad1dd86a45da8f235300349d4abd9ae7d1a21
tree28f651aadce98f8037c0682d0a30cf39e0bde13a
parent7472f38b10c884f47241529d1367f77c2e1b3551
usb: gadget zero timer init fix

Initialize timer earlier so if an error occurs allocating USB request
or buffer request (zero_bind) Gadget Zero will not hang trying to
delete an uninitialized timer (zero_unbind).

Signed-off-by: David Lopo <lopo.david@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/zero.c