mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
usb: gadget: ci13xxx: fix ep list removal in gadget unregistering code
Since ep0{out,in} are never on gadget's ep_list, there's no need to try
to unlink them, even more so because ep_list linkage is not initialized
for these endpoints.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ab59ac0155
commit
efa015bbc4
1 changed files with 1 additions and 1 deletions
|
|
@ -2737,7 +2737,7 @@ static int ci13xxx_stop(struct usb_gadget_driver *driver)
|
|||
for (i = 0; i < hw_ep_max; i++) {
|
||||
struct ci13xxx_ep *mEp = &udc->ci13xxx_ep[i];
|
||||
|
||||
if (!list_empty(&mEp->ep.ep_list))
|
||||
if (mEp->num)
|
||||
list_del_init(&mEp->ep.ep_list);
|
||||
|
||||
if (mEp->qh.ptr != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue