summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2020-08-21 05:55:47 +0300
committerFelipe Balbi <balbi@kernel.org>2020-10-02 09:57:42 +0300
commit6b7778924c70dad395f6aa843d641e799590f890 (patch)
treed25fcc1fce26d163a1c98a2c67df2c211f1279ac /drivers/usb/dwc3
parent9b719c7119e77e8ddeefe4772c554d2863579c2b (diff)
downloadlinux-6b7778924c70dad395f6aa843d641e799590f890.tar.xz
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>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions