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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
commitdb466c7b6feefbc0dfd4cea9fedf9ac0f6100bc9
tree2a5f70273a2d06d3a9b1e883b6c7f62aeea65729
parentb657f4d23156c76845480f5582808b86afc35084
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