kernel-ark/drivers/usb/gadget
Wojtek Kaniewski 943c441948 USB: at91_udc: Cleanup variables after failure in usb_gadget_register_driver()
This patch zeroes some variables when usb_gadget_register_driver()
fails. gadgetfs does a dummy registration to get the name of the USB
driver and then waits for user-land driver. If someone plugs the cable
in the meantime, bad things happen, because at91_udc has been left in
inconsistent state.

Signed-off-by: Wojtek Kaniewski <wojtekka@toxygen.net>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-12-20 10:14:27 -08:00
..
at91_udc.c USB: at91_udc: Cleanup variables after failure in usb_gadget_register_driver() 2006-12-20 10:14:27 -08:00
at91_udc.h USB: at91_udc, misc fixes 2006-12-20 10:14:27 -08:00
config.c
dummy_hcd.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
epautoconf.c
ether.c
file_storage.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
gadget_chips.h
gmidi.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
goku_udc.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
goku_udc.h
inode.c
Kconfig
lh7a40x_udc.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
lh7a40x_udc.h
Makefile
ndis.h
net2280.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
net2280.h
omap_udc.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
omap_udc.h
pxa2xx_udc.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
pxa2xx_udc.h
rndis.c
rndis.h
serial.c USB: gadget driver unbind() is optional; section fixes; misc 2006-12-20 10:14:26 -08:00
usbstring.c
zero.c