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
F170959322: D56500.id175829.diff
Mon, Sep 7, 9:06 PM
Unknown Object (File)
Mon, Sep 7, 6:31 AM
Unknown Object (File)
Sat, Sep 5, 7:41 PM
Unknown Object (File)
Sat, Sep 5, 8:53 AM
Unknown Object (File)
Fri, Sep 4, 9:50 PM
Unknown Object (File)
Thu, Sep 3, 7:28 AM
Unknown Object (File)
Wed, Sep 2, 10:07 PM
Unknown Object (File)
Wed, Sep 2, 11:26 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