gadget: f_thor: Fix memory leaks of usb request and its buffer
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 25 May 2018 05:21:01 +0000 (14:21 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 10 Oct 2019 04:38:41 +0000 (13:38 +0900)
commit532cf3498a1599ceff38afe412fa980d0462aae6
tree582bd0bd27650751d852d173f1d5be05ccdc5aca
parent9e754454e51c613e4260ad165c283ce1b54b3551
gadget: f_thor: Fix memory leaks of usb request and its buffer

There are memory leaks of usb request and its buffer for ep0,
in_ep, and out ep. Fix memory leaks of usb request and its buffer.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: fix conflict about int_ep from thor_eps_setup()]

Change-Id: I606d039d53847d0e0850c5bcbceca451bdbb1c02
drivers/usb/gadget/f_thor.c