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)
Tue, Jul 7, 2:36 AM
Unknown Object (File)
Thu, Jul 2, 1:18 PM
Unknown Object (File)
Wed, Jul 1, 11:45 PM
Unknown Object (File)
Sun, Jun 28, 12:24 AM
Unknown Object (File)
Thu, Jun 11, 11:03 AM
Unknown Object (File)
Jun 4 2026, 11:59 AM
Unknown Object (File)
May 14 2026, 11:23 AM
Unknown Object (File)
May 14 2026, 6:07 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