mirror of
https://github.com/reactos/reactos.git
synced 2025-07-01 12:01:23 +00:00
- 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:
parent
d02d6ccb6c
commit
21c6c5fdf7
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue