linux/drivers/usb/misc
Felix Gu 33cfe0709b usb: misc: usbio: Fix URB memory leak on submit failure
When usb_submit_urb() fails in usbio_probe(), the previously allocated
URB is never freed, causing a memory leak.

Fix this by jumping to err_free_urb label to properly release the URB
on the error path.

Fixes: 121a0f839d ("usb: misc: Add Intel USBIO bridge driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Oliver Neukum <oneukum@suse.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260331-usbio-v2-1-d8c48dad9463@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-04-02 09:36:36 +02:00
..
sisusbvga
Kconfig
Makefile
adutux.c
apple-mfi-fastcharge.c
appledisplay.c
brcmstb-usb-pinmap.c
chaoskey.c
cypress_cy7c63.c
cytherm.c
ehset.c
emi26.c
emi62.c
ezusb.c
idmouse.c
iowarrior.c
isight_firmware.c
ldusb.c
legousbtower.c
lvstest.c
onboard_usb_dev.c
onboard_usb_dev.h
onboard_usb_dev_pdevs.c
qcom_eud.c
trancevibrator.c
usb-ljca.c
usb251xb.c
usb3503.c
usb4604.c
usbio.c
usblcd.c
usbsevseg.c
usbtest.c
uss720.c
yurex.c