Re: [PATCH v2] usb: misc: usbio: Fix URB memory leak on submit failure
From: Oliver Neukum
Date: Tue Mar 31 2026 - 08:16:23 EST
On 31.03.26 14:05, Felix Gu wrote:
When usb_submit_urb() fails in usbio_probe(), the previously allocatedReviewed-by: Oliver Neukum <oneukum@xxxxxxxx>
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: 121a0f839dbb ("usb: misc: Add Intel USBIO bridge driver")
Signed-off-by: Felix Gu <ustc.gu@xxxxxxxxx>