]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]
authorYoung Xiao <92siuyang@gmail.com>
Tue, 28 May 2019 12:17:54 +0000 (20:17 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 6 Jun 2019 10:51:57 +0000 (13:51 +0300)
commit7a4783e22fda789ac3cda6a6bf1307f2d2eae0f7
tree10da2bcfe67124fe8d2376a01d625af4da91b4cb
parent66d1896f58f71a4244f5e083395c7ba6e8f0b66f
usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]

There is no deallocation of fusb300->ep[i] elements, allocated at
fusb300_probe.

The patch adds deallocation of fusb300->ep array elements.

Signed-off-by: Young Xiao <92siuyang@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fusb300_udc.c