linux_dsm_epyc7002/drivers/usb/cdns3
Peter Chen 6b7778924c usb: cdns3: gadget: fix possible memory leak
If cdns3_gadget_start is failed, it never frees cdns3_device structure.
Meanwhile, there is no release function for gadget device, it causes
there is no sync with driver core.

To fix this, we add release function for gadget device, and free
cdns3_device structure at there. Meanwhile, With the new UDC core
APIs, we could work with driver core better to handle memory leak
issue.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2020-10-02 09:57:42 +03:00
..
cdns3-imx.c usb: cdns3: imx: add glue layer runtime pm implementation 2020-10-02 09:57:38 +03:00
cdns3-pci-wrap.c usb: cdns3: fix spelling mistake "wrapperr" -> "wrapper" 2020-03-19 15:14:48 +01:00
cdns3-ti.c USB: Replace HTTP links with HTTPS ones 2020-07-21 13:41:57 +02:00
core.c usb: cdns3: core: quit if it uses role switch class 2020-10-02 09:57:40 +03:00
core.h usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup 2020-10-02 09:57:39 +03:00
debug.h usb: cdns3: fix spelling mistake and rework grammar in text 2020-01-24 09:41:27 +01:00
drd.c usb: cdns3: drd: call PHY .set_mode accordingly 2020-10-02 09:57:40 +03:00
drd.h usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup 2020-10-02 09:57:39 +03:00
ep0.c usb: cdns3: gadget: move wait configuration operation 2020-10-02 09:57:40 +03:00
gadget-export.h
gadget.c usb: cdns3: gadget: fix possible memory leak 2020-10-02 09:57:42 +03:00
gadget.h usb: cdns3: make signed 1 bit bitfields unsigned 2020-03-26 15:05:44 +01:00
host-export.h usb: cdns3: include host-export,h for cdns3_host_init 2019-10-27 08:58:44 +02:00
host.c usb: cdns3: add runtime PM support 2020-10-02 09:57:38 +03:00
Kconfig usb: cdns3: add NXP imx8qm glue layer 2020-01-15 10:39:22 +01:00
Makefile usb: cdns3: add NXP imx8qm glue layer 2020-01-15 10:39:22 +01:00
trace.c
trace.h usb: cdns3: trace: fix some endian issues 2020-07-09 10:13:07 +03:00