diff options
| author | Zhang Qilong <[email protected]> | 2020-11-23 14:58:09 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-12-09 14:25:21 +0000 |
| commit | e5548b05631ec3e6bfdaef1cad28c799545b791b (patch) | |
| tree | cb12dd2ed714d34835a976dfaa8d8fe723617323 /drivers/usb/cdns3/core.c | |
| parent | usb: fotg210-hcd: remove casting dma_alloc_coherent (diff) | |
| download | kernel-e5548b05631ec3e6bfdaef1cad28c799545b791b.tar.gz kernel-e5548b05631ec3e6bfdaef1cad28c799545b791b.zip | |
usb: oxu210hp-hcd: Fix memory leak in oxu_create
usb_create_hcd will alloc memory for hcd, and we should
call usb_put_hcd to free it when adding fails to prevent
memory leak.
Fixes: b92a78e582b1a ("usb host: Oxford OXU210HP HCD driver")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions
