]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[usb] Add missing usb_recycle() for completed hub interrupt transfers
authorMichael Brown <mcb30@ipxe.org>
Thu, 2 Jul 2020 13:19:02 +0000 (14:19 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 2 Jul 2020 13:19:02 +0000 (14:19 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/usb/usbhub.c

index 47914bcdbf20e62278081a3f74837f7bbf577122..cd7815834d81e3659a33058487cfd258081a7ac2 100644 (file)
@@ -110,6 +110,10 @@ static void hub_complete ( struct usb_endpoint *ep,
        }
 
  done:
+
+       /* Recycle I/O buffer */
+       usb_recycle ( &hubdev->intr, iobuf );
+
        /* Start refill process */
        process_add ( &hubdev->refill );
 }