usb gadget: fix fsl_usb2_udc potential OOPS
authorLi Yang <leoli@freescale.com>
Thu, 3 Jan 2008 18:04:40 +0000 (10:04 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:43 +0000 (14:34 -0800)
commit2336a986793c771008b181ec65334c240ce512ca
treed37fb204b34f6425ff4227624575ee07f44e353d
parent3004e5379a525d848bbe8ddff2c534ac0fb04e2c
usb gadget: fix fsl_usb2_udc potential OOPS

For fsl_usb2_udc driver, ep0 also has a descriptor.  Current code is
misleading and contains a logical mistake.  Here is the patch to fix it.

 http://bugzilla.kernel.org/show_bug.cgi?id=9595

Cc: stable <stable@kernel.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_usb2_udc.c