author | Ajay Kumar Gupta <ajay.gupta@ti.com> | |
Fri, 21 Oct 2011 05:02:12 +0000 (10:32 +0530) | ||
committer | Vaibhav Hiremath <hvaibhav@ti.com> | |
Mon, 23 Jan 2012 19:14:33 +0000 (00:44 +0530) | ||
commit | 857220d0d1c2a719ed6b6f2b917655674c40d9c3 | |
tree | 9e74f8af88db31f961c1d5e9fb61277c95dc2997 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4e0eb1b7be40735771436fa3060c7cb23caa3f0f | commit | diff |
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>
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>