mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
usb: gadget: f_thor: Free the allocated out request buffer
Fix the memory leak by freeing the allocated out request buffer Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
78e3098752
commit
bab0146ea9
@ -891,6 +891,7 @@ static void thor_func_disable(struct usb_function *f)
|
||||
}
|
||||
|
||||
if (dev->out_ep->driver_data) {
|
||||
free(dev->out_req->buf);
|
||||
dev->out_req->buf = NULL;
|
||||
usb_ep_free_request(dev->out_ep, dev->out_req);
|
||||
usb_ep_disable(dev->out_ep);
|
||||
|
Loading…
Reference in New Issue
Block a user