mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
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 <[email protected]>
Signed-off-by: Felix Gu <[email protected]>
Reviewed-by: Oliver Neukum <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>