Skip to content

Commit 4cf265f

Browse files
committed
Fix unintended line swap that cause cause memory leak in USB driver
1 parent d274376 commit 4cf265f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
764764
if(urb->hcpriv != NULL) {
765765
dwc_otg_hcd_urb_dequeue(dwc_otg_hcd, (dwc_otg_hcd_urb_t *)urb->hcpriv);
766766

767-
urb->hcpriv = NULL;
768767
dwc_free(urb->hcpriv);
768+
urb->hcpriv = NULL;
769769
}
770770

771771
/* Higher layer software sets URB status. */

0 commit comments

Comments
 (0)