aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Chen <[email protected]>2020-08-21 10:55:47 +0800
committerFelipe Balbi <[email protected]>2020-10-02 09:57:42 +0300
commit6b7778924c70dad395f6aa843d641e799590f890 (patch)
treed25fcc1fce26d163a1c98a2c67df2c211f1279ac /tools/perf/scripts/python
parent9b719c7119e77e8ddeefe4772c554d2863579c2b (diff)
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 <[email protected]> Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions