usb: ether_gadget: fix insmod panic after fsg rmmod
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 21 Oct 2011 05:02:12 +0000 (10:32 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:33 +0000 (00:44 +0530)
commit857220d0d1c2a719ed6b6f2b917655674c40d9c3
tree9e74f8af88db31f961c1d5e9fb61277c95dc2997
parent4e0eb1b7be40735771436fa3060c7cb23caa3f0f
usb: ether_gadget: fix insmod panic after fsg rmmod

Fixes kernel panic seen during g_ether.ko module insertion performed
after the FSG gadget rmmod.

Ether gadget doesn't reset the usb_ep(s) during initialization and
so was getting the previous gadget's usb_ep->desc data.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/usb/gadget/epautoconf.c
drivers/usb/gadget/f_ecm.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/f_subset.c