diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-22 03:43:14 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-22 03:43:14 +0000 |
commit | e9aad2f488cfe426dd0d1e6e1c9bf55f56cc4f73 (patch) | |
tree | c294a753968aadd1f6c4e8203bd8357becdc961d /usr.bin/leave | |
parent | 6ad55c11955868be7235e12859cd1ea52c9e429c (diff) |
Some devices do not update the TRB transfer residual information as
STALL'ing. So use the standard's recommended csw.dCSWDataResidue and
copy data only on successful completion of the request.
Fixes issue where N bytes are requested, M bytes are returned, and the
device STALL's because it has no more data to give. Thus resulting in
no data is copied to the user buffer but the claim being made that
said buffer now contains M new bytes of valid data.
e.g. when cdio(1) asks for 4096 bytes of media data and only 96 bytes
are provided by the CDRW device.
Feeback, cluebats, fixes and ok patrick@
Diffstat (limited to 'usr.bin/leave')
0 files changed, 0 insertions, 0 deletions