Page MenuHomeFreeBSD

rtlbtfw: handle partial reads when loading firmware
AbandonedPublic

Authored by chris.longros_gmail.com on Apr 18 2026, 11:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 11:23 AM
Unknown Object (File)
Thu, May 14, 6:07 AM
Unknown Object (File)
Thu, May 14, 12:06 AM
Unknown Object (File)
Mon, May 11, 6:15 AM
Unknown Object (File)
Mon, May 11, 6:15 AM
Unknown Object (File)
Sun, May 10, 7:38 PM
Unknown Object (File)
Fri, May 8, 5:11 AM
Unknown Object (File)
Tue, May 5, 8:08 AM
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