linux/drivers/usb
Li Yang 342161c114 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: 0d45a1373e ("usb: phy: tahvo: add IRQ check")
Signed-off-by: Li Yang <lidaxian@hust.edu.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230420140832.9110-1-lidaxian@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-29 15:49:16 +01:00
..
atm usb: move from strlcpy with unused retval to strscpy 2022-08-19 11:08:54 +02:00
c67x00 usb: c67x00-drv: Convert to platform remove callback returning void 2023-05-28 12:36:14 +01:00
cdns3 usb: cdns3-ti: Convert to platform remove callback returning void 2023-05-28 12:36:15 +01:00
chipidea usb: chipidea/core: Convert to platform remove callback returning void 2023-05-28 12:36:15 +01:00
class USB: usbtmc: Fix direction for 0-length ioctl control messages 2023-05-13 17:25:49 +09:00
common usb: common: usb-conn-gpio: Convert to platform remove callback returning void 2023-05-28 12:36:15 +01:00
core USB: Extend pci resume function to handle PM events 2023-05-13 17:33:18 +09:00
dwc2 usb: dwc2: support dwc2 IP for Amlogic A1 SoC family 2023-05-13 19:03:24 +09:00
dwc3 usb: dwc3: qcom: Fix potential memory leak 2023-05-29 15:17:28 +01:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 usb: fotg210: Convert to platform remove callback returning void 2023-05-28 12:36:25 +01:00
gadget usb: gadget: uvc: queue empty isoc requests if no video buffer is available 2023-05-29 15:22:50 +01:00
host usb: uhci: handle HAS_IOPORT dependencies 2023-05-29 15:29:03 +01:00
image scsi: usb: uas: Declare two host templates and host template pointers const 2023-03-24 19:20:00 -04:00
isp1760 usb: isp1760: Convert to platform remove callback returning void 2023-05-28 12:38:01 +01:00
misc usb: misc: usb3503: Convert to platform remove callback returning void 2023-05-28 12:38:01 +01:00
mon driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mtu3 usb: mtu3: add optional clock xhci_ck and frmcnt_ck 2023-04-20 11:17:05 +02:00
musb usb: musb: ux500: Convert to platform remove callback returning void 2023-04-05 19:07:42 +02:00
phy usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe() 2023-05-29 15:49:16 +01:00
renesas_usbhs usb: renesas_usbhs: Convert to platform remove callback returning void 2023-05-28 12:38:01 +01:00
roles usb: roles: intel_xhci: Convert to platform remove callback returning void 2023-05-28 12:38:01 +01:00
serial Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
storage usb-storage: fix deadlock when a scsi command timeouts more than once 2023-05-13 18:53:03 +09:00
typec usb: typec: mux: Remove alt mode parameters from the API 2023-05-29 15:17:52 +01:00
usbip usbip: vhci_hcd: Convert to platform remove callback returning void 2023-05-28 12:38:02 +01:00
Kconfig usb: move config USB_USS720 to usb's misc Kconfig 2023-03-29 10:34:08 +02:00
Makefile usb: host: u132-hcd: Delete driver 2023-03-21 14:06:11 +01:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00