Page MenuHomeFreeBSD

rtlbtfw: handle partial reads when loading firmware
AbandonedPublic

Authored by chris.longros_gmail.com on Sat, Apr 18, 11:44 AM.
Tags
None
Referenced Files
F153978194: D56500.diff
Sat, Apr 25, 5:40 AM
Unknown Object (File)
Fri, Apr 24, 12:28 AM
Unknown Object (File)
Sun, Apr 19, 5:38 PM
Unknown Object (File)
Sat, Apr 18, 7:46 PM
Unknown Object (File)
Sat, Apr 18, 7:46 PM
Unknown Object (File)
Sat, Apr 18, 7:44 PM
Subscribers

Details

Reviewers
wulf
Summary

Loop until all bytes are read or a real error occurs, instead of
assuming a single read() returns the entire file. Retry on EINTR
and break on EOF. Use intmax_t casts in the error message to
match off_t portably.

Signed-off-by: Christos Longros

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 72321
Build 69204: arc lint + arc unit