usb:gadget: cancel pending control request after disconnection
BZ: 30958
Control requests can be pending on ep0IN after disconnection, after re-connection,
the request completes but the gadget (e.g. RNDIS) is already removed, this causes
NULL pointer issue. The patch removes the pending control request after disconnection.
Change-Id: Ifc9dc823ab550c0451667128c78c6f2ecebe1c4c
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/43029
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>