diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-10 11:18:49 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-10 11:18:49 +0000 |
commit | 863f5e679091d5af40787f5863a9f61b84db11c5 (patch) | |
tree | 8ea6fddec874b5e4d597584e64da3e8c688710ae /share/man | |
parent | 8be19390d68917bbad04b8329790eb50f5281208 (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