]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: udc: atmel: remove memory leak
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 11 Jan 2017 12:11:08 +0000 (13:11 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 12 Jan 2017 08:05:04 +0000 (10:05 +0200)
commit32856eea7bf75dfb99b955ada6e147f553a11366
tree066483e73bb31b1ba14beafc8b296ca8edfb2c08
parent8ae584d1951f241efd45499f8774fd7066f22823
usb: gadget: udc: atmel: remove memory leak

Commit bbe097f092b0 ("usb: gadget: udc: atmel: fix endpoint name")
introduced a memory leak when unbinding the driver. The endpoint names
would not be freed. Solve that by including the name as a string in struct
usba_ep so it is freed when the endpoint is.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/atmel_usba_udc.c
drivers/usb/gadget/udc/atmel_usba_udc.h