summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-10 11:18:49 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-10 11:18:49 +0000
commit863f5e679091d5af40787f5863a9f61b84db11c5 (patch)
tree8ea6fddec874b5e4d597584e64da3e8c688710ae /share/man
parent8be19390d68917bbad04b8329790eb50f5281208 (diff)
Fix a use-after-free when sending root hub control transfers.
*_root_ctrl_start() routines are synchronous and all end up calling usb_transfer_complete() in the non-error case. After calling this function it is unsafe to dereference ``xfer'' since the transfer callback has been called. So returning USBD_IN_PROGRESS is wrong in this case since transfers are always completed at this point. So return USBD_NORMAL_COMPLETION or the corresponding error code if something wrong happen.
Diffstat (limited to 'share/man')
0 files changed, 0 insertions, 0 deletions