- Handle failure case correctly in *_submit_urb: remove URB from an endpoint's linked list, instead of corrupting this URB's memory. Thanks to Gregor Schneider for spotting the suspicious place.

See issue #4279 for more details.

svn path=/trunk/; revision=40781
This commit is contained in:
Aleksey Bragin 2009-05-04 09:32:02 +00:00
parent d02d6ccb6c
commit 21c6c5fdf7
2 changed files with 2 additions and 2 deletions

View file

@ -798,7 +798,7 @@ ehci_submit_urb(PEHCI_DEV ehci, PUSB_DEV pdev, PUSB_ENDPOINT pendp, PURB purb)
LBL_OUT2:
pdev->ref_count--;
RemoveEntryList((PLIST_ENTRY) purb);
RemoveEntryList(&purb->urb_link);
LBL_OUT:
unlock_dev(pdev, TRUE);

View file

@ -1436,7 +1436,7 @@ uhci_submit_urb(PUHCI_DEV uhci, PUSB_DEV pdev, PUSB_ENDPOINT pendp, PURB purb)
LBL_OUT2:
pdev->ref_count--;
RemoveEntryList((PLIST_ENTRY) purb);
RemoveEntryList(&purb->urb_link);
LBL_OUT:
unlock_dev(pdev, TRUE);