aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorLi Yang <[email protected]>2023-04-20 14:08:31 +0000
committerGreg Kroah-Hartman <[email protected]>2023-05-29 14:49:16 +0000
commit342161c11403ea00e9febc16baab1d883d589d04 (patch)
treea67d00916af619b21eda79a6823d5e7f0320dd16 /drivers/usb/cdns3/cdns3-starfive.c
parentdt-bindings: usb: usb251xb: correct swap-dx-lanes type to uint32 (diff)
downloadkernel-342161c11403ea00e9febc16baab1d883d589d04.tar.gz
kernel-342161c11403ea00e9febc16baab1d883d589d04.zip
usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()
Smatch reports: drivers/usb/phy/phy-tahvo.c: tahvo_usb_probe() warn: missing unwind goto? After geting irq, if ret < 0, it will return without error handling to free memory. Just add error handling to fix this problem. Fixes: 0d45a1373e66 ("usb: phy: tahvo: add IRQ check") Signed-off-by: Li Yang <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions