]> git.dujemihanovic.xyz Git - u-boot.git/commit
gadget: f_thor: fix hang-up with ctrl-c
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 4 Jun 2018 06:53:39 +0000 (15:53 +0900)
committerMarek Vasut <marex@denx.de>
Wed, 8 Aug 2018 20:22:07 +0000 (22:22 +0200)
commitc194bdf226030e45bcb2db3dcbb2d72e5052820a
tree8ad62c6ce056bda70d4c1211d7cb0e34b3aca846
parentb1aad8dbe28415695b290726199681ced969c118
gadget: f_thor: fix hang-up with ctrl-c

After the commit 6aae84769a0b ("gadget: f_thor: Fix memory leaks of
usb request and its buffer"), there is hang-up with ctrl-c in some
udc. It is because req of out_ep is freed before out_ep is disabled.
Fix hang-up with ctrl-c by disabling ep before free req of the ep.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/gadget/f_thor.c